Forum Discussion
Same navigation for several hub sites
- Apr 09, 2020
Hi wit4r7,
Yes, you could utilize Set-PnPHubSite cmdlet from SharePoint PnP PowerShell to toggle the Show or Hide Hub Name in Navigation parameter.
Example - Set-PnPHubSite -Identity <YourHubSite> -HideNameInNavigation:$true
Set $true in the above command to Hide your default Hub Site link in the Hub Navigation and,Set $false in the above command to Show your default Hub Site link in the Hub Navigation
Please note that when you run the above command from PowerShell, the changes may not be reflecting immediately and you may have to wait for 30-60 minutes for the changes to reflect in your Hub Navigation. Therefore, you may have to plan accordingly when you make changes via PowerShell.
Please refer this link for the documentation - https://docs.microsoft.com/en-us/powershell/module/sharepoint-pnp/set-pnphubsite?view=sharepoint-ps
I hope this is helpful, please like it or mark it as a solution if it answers your query.
Thanks.
Hi,
Yes, you can remove the default link of current hub site in the navigation. Please follow the below steps -
Click on the Gear icon in the top right of the ribbon and navigate to Hub Site Settings and then click on the toggle option from "Shown in Navigation" to "Hidden in Navigation" and then Save it. This should remove the link of your current default hub site in the hub site navigation.
To move the link to a different order in the navigation, you could follow the above steps and then click on the edit option in the navigation to add the current hub site link in any order as per your requirement. Please see the attached screenshot for the configuration.
I hope this is helpful, please like it or mark it as a solution if it answers your query.
Thanks.
- wit4r7Apr 08, 2020Brass ContributorThanks, that helps a lot!
Is there a PowerShell command for doing the same?- Swaminathan SriramApr 09, 2020Iron Contributor
Hi wit4r7,
Yes, you could utilize Set-PnPHubSite cmdlet from SharePoint PnP PowerShell to toggle the Show or Hide Hub Name in Navigation parameter.
Example - Set-PnPHubSite -Identity <YourHubSite> -HideNameInNavigation:$true
Set $true in the above command to Hide your default Hub Site link in the Hub Navigation and,Set $false in the above command to Show your default Hub Site link in the Hub Navigation
Please note that when you run the above command from PowerShell, the changes may not be reflecting immediately and you may have to wait for 30-60 minutes for the changes to reflect in your Hub Navigation. Therefore, you may have to plan accordingly when you make changes via PowerShell.
Please refer this link for the documentation - https://docs.microsoft.com/en-us/powershell/module/sharepoint-pnp/set-pnphubsite?view=sharepoint-ps
I hope this is helpful, please like it or mark it as a solution if it answers your query.
Thanks.