SharePoint Document Issues

Fix SharePoint Removing Fragment Identifiers from Navigation Links

Phi Hung VoPhi Hung Vo Nov 4, 2026 868 views

Question details

Users are experiencing an issue where SharePoint automatically deletes URL fragment identifiers (anchor links) from navigation links upon saving.

How to Fix SharePoint Removing Fragment Identifiers from Navigation Links
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 you start

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.

Solution 1Recommended

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.

1
Create a test site

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.

2
Navigate to the Admin Center

Log in to the Microsoft 365 Admin Center using an administrator account.

3
Open a support ticket

Go to Support > Help & Support and describe the issue as 'SharePoint navigation removes URL fragments upon saving'.

4
Provide test details

Share the URL of your test site with the Microsoft escalation team so they can investigate the bug in a live environment.

Report the Known Bug to Microsoft Support
Current Bug Status: This is a confirmed behavior where SharePoint treats the anchor tag as an invalid URL structure in the global navigation menu. Support tickets help prioritize a fix.
Free Microsoft Office alternative

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. 1. Download WPS Office: Visit the official WPS Office website and download the free installation package for your operating system.
  2. 2. Install and Sign In: Complete the lightweight installation process and sign in to access free cloud storage and templates.
  3. 3. Open Your Documents: Open your existing Microsoft Office files directly in WPS Office to experience seamless format compatibility.
Fully compatible with Microsoft Word, Excel, and PowerPoint formats (.docx, .xlsx, .pptx).Built-in cloud collaboration features to share documents easily without complex intranet navigation setups.Lightweight installation and familiar interface, making migration effortless.Free to use with comprehensive PDF editing tools included.
microsoft office alternative - wps office

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.