Fix SharePoint Anchor Links Breaking When Subpage is Homepage
Question details
Users experience broken heading links in SharePoint modern navigation because the system improperly appends a slash to anchor URLs.

- Product
- Microsoft SharePoint
- Device & OS
- not provided
- Scenario
- Configuring modern navigation links to specific headings on a subpage that has been set as the site homepage.
- Observed behavior
- SharePoint automatically appends a trailing slash to the anchor URLs upon saving the navigation menu, breaking the links. Clearing or recreating the menu does not resolve the behavior.
Ensure you have the exact URLs of the affected pages, the intended anchor links, and your step-by-step reproduction process documented before proceeding.
Submit a Bug Report to Microsoft Support
Since this is a known development defect in SharePoint's backend, the most effective action is to submit a formal service request to Microsoft.
Recreating the navigation menu or adding links through Site Settings will not resolve this behavior. The trailing slash is appended automatically by SharePoint when the navigation items are saved, making it a system-level bug rather than a user configuration error.
Collect the URLs of the affected subpages, the exact anchor links you are trying to use, and a clear description of the reproduction steps.
Log in to the Microsoft 365 admin center using an administrator account.
Click on the 'Support' section in the left-hand navigation pane, then select 'Help & support' or 'New service request'.
Provide a detailed description of the issue, explicitly stating that modern navigation appends a trailing slash to anchor URLs when a subpage is configured as the site homepage, and submit the ticket.

Experience Hassle-Free Document Management with WPS Office
While SharePoint and Microsoft Office platforms can sometimes present complex navigation bugs and administrative hurdles, WPS Office offers a streamlined, lightweight, and highly compatible offline and cloud alternative for all your document creation needs.
- 1. Download the installer: Visit the official WPS Office website and click the Free Download button.
- 2. Install WPS Office: Run the downloaded installer file and follow the simple on-screen instructions.
- 3. Open existing files: Launch WPS Office and seamlessly open your existing Microsoft Office documents without format loss.

Frequently Asked Questions
Why does SharePoint add a slash to my anchor links?
This is a known development defect in SharePoint's modern navigation. When a subpage is configured as the homepage, the system incorrectly appends a trailing slash to the anchor URL during the save process, which corrupts the link path.
Can I fix the broken anchor links by recreating the navigation menu?
No. Clearing and recreating the menu items, or configuring navigation directly through Site Settings, will not resolve the issue. The trailing slash will still be appended automatically as soon as the menu is saved.
Does this trailing slash issue affect all links in the SharePoint navigation?
Users have observed that the trailing slash is appended to most heading anchor links, though it occasionally excludes the very first link in the menu. Standard page links without heading anchors are typically unaffected.




