Forum Discussion
Teun_Smeyers
Sep 07, 2021Copper Contributor
Hub Site Global Navigation Not Updating
Hi there, I have a teamsite "Werfkeet" which is the main hub site. In the hub I have 3 other Team sites. Each Team site is supposed to have the same global navigation at the top of the page. The ...
iXeeshanTahir
Sep 04, 2023Copper Contributor
I have faced the similar issue in past. So, after weeks of trying different approaches, I was finally able to achieve this with some custom piece of code.
The problem here is that SharePoint Online stores the Hub navigation in browser cache. A database called ODSP_DB is holding the navigation nodes. Users cannot see the navigation updates unless they clear browser cache (which eventually refreshes the database) or logout and login to the system.
To overcome this issue, you have to clean the DB with custom JS Code and unregister a service worker from the browser, which actually forces the browser to rebuild the ODSP_DB and the navigation nodes.
I have placed the sample code on my blog. May be it will help someone until a proper way is announced by Microsoft.
http://fixingsharepoint.blogspot.com/2022/11/sharepoint-online-hub-navigation-not.html
The problem here is that SharePoint Online stores the Hub navigation in browser cache. A database called ODSP_DB is holding the navigation nodes. Users cannot see the navigation updates unless they clear browser cache (which eventually refreshes the database) or logout and login to the system.
To overcome this issue, you have to clean the DB with custom JS Code and unregister a service worker from the browser, which actually forces the browser to rebuild the ODSP_DB and the navigation nodes.
I have placed the sample code on my blog. May be it will help someone until a proper way is announced by Microsoft.
http://fixingsharepoint.blogspot.com/2022/11/sharepoint-online-hub-navigation-not.html