SharePoint Online : Link in modern page not working <a href="#mysection">My Section</a>

Copper Contributor

Hi everyone

I developed a SharePoint header webpart that are in all pages by default on the intranet website. In this webpart I have two links that normally redirect users in the same page to a specific section (mypages.aspx#mysection).

 

My problem is that SharePoint load the content of the page asynchronously. So if the corresponding webpart containing #mysection div is not loaded yet, the link is not working.

 

Do you know if there is a way to tell SharePoint to load all page content and not loading it asynchronously ? Or can we configure a custom SPFX webpart to not be rendered asynchronously but directly when the user load the page ?  

0 Replies