Don't include URL path when linking to current page
When linking to the current page, the URL should only include the fragment portion. It should not include the URL path relative to the current page.
For example, instead of:
<a href="page-header.html#meta">Page Metadata</a>
It should be:
<a href="#meta">Page Metadata</a>
If there's no fragment, the value should be
.if path ends with
/, otherwise the basename of current URL
If there's a fragment, the value should be
This calculation is handled by the relativize helper.
This fixes the still outstanding problem of in-page links in the navigation menu not jumping to the correct offset.