Fix SharePoint Removing Fragment Identifiers from Navigation Links
Question details
Users are experiencing an issue where SharePoint automatically deletes URL fragment identifiers (anchor links) from navigation links upon saving.

- Product
- Microsoft SharePoint
- Device & OS
- not provided
- Scenario
- Adding anchor links to a SharePoint site navigation menu to jump directly to specific sections on a page.
- Observed behavior
- The fragment identifier (e.g., #departmentname) is removed immediately after saving the navigation link, breaking the page jump functionality.
Before troubleshooting, verify if the issue occurs across all pages on your SharePoint site or is isolated to specific site pages, and ensure you have Site Owner permissions to edit the navigation.
Report the Known Bug to Microsoft Support
Since this is a known bug in SharePoint where URL fragments are automatically stripped during the save process, the most effective step is to escalate it to Microsoft support.
Many users have confirmed that the main SharePoint navigation sometimes aggressively strips URL fragments (the # symbol and following text). Because this relates to backend link validation, opening a support ticket is necessary to trigger a permanent fix.
Set up a temporary SharePoint test site and attempt to add a navigation link with a fragment identifier (e.g., #testsection) to reproduce the exact issue.
Log in to the Microsoft 365 Admin Center using an administrator account.
Go to Support > Help & Support and describe the issue as 'SharePoint navigation removes URL fragments upon saving'.
Share the URL of your test site with the Microsoft escalation team so they can investigate the bug in a live environment.

Use Quick Links Web Part as a Workaround
If the main site navigation strips fragments, use Quick Links or text hyperlinks directly on the page to bypass the navigation menu limitation.
Try WPS Office for Seamless Document Management
While SharePoint handles intranet navigation, managing the actual documents within your team doesn't have to be complicated or expensive. WPS Office offers a completely free, lightweight, and highly compatible alternative to Microsoft Office for all your document needs.
- 1. Download WPS Office: Visit the official WPS Office website and download the free installation package for your operating system.
- 2. Install and Sign In: Complete the lightweight installation process and sign in to access free cloud storage and templates.
- 3. Open Your Documents: Open your existing Microsoft Office files directly in WPS Office to experience seamless format compatibility.

Frequently Asked Questions
Why does SharePoint remove the # sign from my navigation links?
SharePoint's global navigation menu validation sometimes aggressively strips URL fragments (the # symbol and the following text) due to a backend bug, incorrectly treating them as invalid URL structures upon saving.
Are URL fragments supported in SharePoint Quick Links?
Yes. While the main site navigation may strip them, adding URLs with fragment identifiers directly into the Quick Links web part or as standard text hyperlinks on the page usually preserves the anchor link functionality.
How do I create a valid anchor link in modern SharePoint pages?
You can create an anchor link by hovering over a Heading text in a modern SharePoint page, right-clicking the link icon that appears to its left, copying the URL, and using it in page web parts.




