Others

Fix SharePoint Navigation Anchor Links Adding a Slash

Chanuka GeekiyanageChanuka Geekiyanage Nov 13, 2026 869 views

Question details

The user needs a SharePoint navigation link that jumps to a section on a communication site page.

Fix SharePoint Navigation Anchor Links Adding a Slash
Product
Microsoft SharePoint
Device & OS
not provided
Scenario
A communication site navigation link targets a heading anchor using the root site URL.
Observed behavior
SharePoint adds a slash to the root-site link, and the link does not jump to the intended section.
Before you start

Open the page that contains the target heading and copy its actual URL. Check that you have permission to edit the site's navigation and identify the heading's anchor.

Solution 1Recommended

Use the full SharePoint page URL for the anchor link

Link directly to the site page instead of the site root to avoid the root URL modification.

1
Copy the page URL

Open the page containing the target section and copy its URL from the browser address bar. For example, the home page may be /sites/gbu-dev/SitePages/Home.aspx.

2
Add the heading anchor

Append the heading anchor to the page URL, such as /sites/gbu-dev/SitePages/Home.aspx#mission. Use the actual anchor for your heading.

3
Edit the navigation link

On the SharePoint site, select Edit in the navigation area. Edit the existing link or add a new link, then paste the page URL with its anchor into the address field.

4
Save and test

Save the navigation changes, then select the link and confirm that it opens the page and jumps to the intended heading.

Use the full SharePoint page URL for the anchor link
Use your site's actual page path: Home.aspx is an example. The page name and heading anchor may differ on your site.
Free Microsoft Office alternative

Create Office documents with WPS Office

WPS Office is a free, lightweight Office alternative with a familiar interface and Microsoft Office format support for a smooth transition. It does not change SharePoint navigation behavior.

Create and edit documents with headings and sectionsCompatible with Microsoft Office formats including DOCX, XLSX, and PPTXUse a familiar interface for everyday document workWork with existing Office files when moving to WPS
microsoft office alternative - wps office

Frequently Asked Questions

Why does my SharePoint anchor link stop working after I save it?

SharePoint may modify a navigation link that points to the site root. Try using the full site page URL followed by the anchor, such as /sites/gbu-dev/SitePages/Home.aspx#mission.

Where can I change the navigation link?

Select Edit in the site's navigation area, edit the link address, and save your changes. Then select the link to test it.

Can I use a page other than Home.aspx?

Yes. Open the page containing the target heading, copy its URL from the browser address bar, and append the correct heading anchor.

What if I need the link to use the site root?

Send feedback through SharePoint's Help or feedback option describing the root-site link behavior. In the meantime, use the full page URL if possible.