SharePoint Document Issues

Fix SharePoint Anchor Links Breaking When Subpage is Homepage

Steve KSteve K Nov 2, 2026 868 views

Question details

Users experience broken heading links in SharePoint modern navigation because the system improperly appends a slash to anchor URLs.

Fix SharePoint Anchor Links Breaking When Subpage is Homepage
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.
Before you start

Ensure you have the exact URLs of the affected pages, the intended anchor links, and your step-by-step reproduction process documented before proceeding.

Solution 1Recommended

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.

1
Gather issue details

Collect the URLs of the affected subpages, the exact anchor links you are trying to use, and a clear description of the reproduction steps.

2
Access Microsoft 365 admin center

Log in to the Microsoft 365 admin center using an administrator account.

3
Navigate to Support

Click on the 'Support' section in the left-hand navigation pane, then select 'Help & support' or 'New service request'.

4
Submit the defect report

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.

Submit a Bug Report to Microsoft Support
Workaround Limitation: While you wait for a Microsoft patch, avoid using subpages as the main homepage if anchor links in the navigation are strictly required for your site's functionality.
Free Microsoft Office alternative

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. 1. Download the installer: Visit the official WPS Office website and click the Free Download button.
  2. 2. Install WPS Office: Run the downloaded installer file and follow the simple on-screen instructions.
  3. 3. Open existing files: Launch WPS Office and seamlessly open your existing Microsoft Office documents without format loss.
Highly compatible with Microsoft Word, Excel, and PowerPoint formatsLightweight application with a familiar, user-friendly interfaceAvoid complex web navigation defects when managing documentsFree to download and use for essential daily office tasks
microsoft office alternative - wps office

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.