SharePoint 2019 removes hash (#), anchor links from address - changes to question mark (?)

Michael Lko 21 Reputation points

SharePoint 2019

Three is a library with many documents. I'd like to use anchor links for automatic scrolling to a concrete document, for ex.:


I created these anchor links with the help of In library in document list I can see anchor links for each document in the corresponding field.

But the matter of fact is that SharePoint 2019 removes hash (#), anchor links from address and changes it to question mark (?) during my try to use an anchor link in browser address filed, for ex.:


After that automatic scrolling to a concrete document doesn't occur.

Please advise me how I can fix that? Why does SharePoint 2019 remove hash (#), anchor links from address and change it to question mark (?)? How can I adjust, setup SharePoint 2019?

I searched possible fixes in Internet but failed. I found that there exists a well-known corresponding issue for Angular with workaround as path handling should be changed - don't use hash (#) in paths. I also played with MDS feature ( — but also failed.

Thank you in advance.

SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,644 questions
{count} votes

Accepted answer
  1. JoyZ 18,041 Reputation points

    @Michael Lko ,

    Per my test and research, we can not use hash mark in SharePoint server 2019 URL.

    This is by design, there is no way to make an anchor link for a document.

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful