In this blog, we have discussed the copy of the navigation menu from one site to another site using a PowerShell script in SharePoint online. There are 3 types of Navigation in SharePoint Online,SharePoint-2013-Hosting

  1. Site Navigation (Local Navigation)
  2. Global Navigation
  3. Hub Site (Tenant) Navigation).

Site Navigation

Site Navigation is also known as the Quick Launch Navigation or Local navigation. A user can access anything related to this site within one click by using this navigation. If you have a Team Site, it has navigation on the left side of the site. If you have a communication site the Quick Launch is on the top of the site.

Global Navigation (Tenant Navigation)

In Global Navigation users can access to any site in the same site collection.

Hub Navigation

Hub site navigation appears at the top of the site and it is global navigation. One would create a link in the sites that are part of the hub site.

In this blog, we will learn how to copy the navigations from one site to another using PowerShell PnP.

Copy hub Navigation

Follow the below code to copy Hub navigation from one site to another site.

Source site image

Destination site image

Copy quick launch Navigation

Follow the below code to copy the quick launch from one site to another site.

Source Site Image

 

Destination site image

 

Conclusion

The above-mentioned script can be used to copy all types of Navigation from one site to another which can be really a great time saver script. If some navigation is getting changed in the site as per the requirement of the organization, then one can use this script to copy all the navigation options from one site to another which is really helpful.