Forum Discussion
Ivan54
Feb 08, 2019Bronze Contributor
Copy/Export Navigation?
Is there a PowerShell command (or other way) to export a hub site navigation and import it to another hub site navigation?
PittSharePointPro
May 25, 2020Iron Contributor
Ivan54 and MoTheSeeker - I found a script that works with mega menu! I ran the script from SharePoint Online Management Shell. Here is the link containing the script:
https://jcallaghan.com/2019/09/replicate-sharepoint-hub-site-navigation/
However, it was only copying non-hyperlinked headings. So I had to add an "-external" switch to get any hyperlinked menu items to copy. This is noted in the article above but better detailed in this second article below:
https://davegerrard.wordpress.com/2019/12/05/editing-hub-site-navigation/