Fix SharePoint Navigation Anchor Links Adding a Slash
Question details
The user needs a SharePoint navigation link that jumps to a section on a communication site page.

- 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.
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.
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.
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.
Append the heading anchor to the page URL, such as /sites/gbu-dev/SitePages/Home.aspx#mission. Use the actual anchor for your heading.
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.
Save the navigation changes, then select the link and confirm that it opens the page and jumps to the intended heading.

Send feedback about root-site anchor links
Use this option if your navigation link must target the site root rather than a specific page.
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.

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.




