SOLVED

Same navigation for several hub sites

%3CLINGO-SUB%20id%3D%22lingo-sub-1291988%22%20slang%3D%22en-US%22%3ESame%20navigation%20for%20several%20hub%20sites%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1291988%22%20slang%3D%22en-US%22%3E%3CP%3EHey%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ewe%20are%20currently%20working%20on%20a%20concept%20to%20move%20from%20our%20Classic%20SharePoint%20Online%20to%20the%20more%20modern%20Modern%20UI%20in%20combination%20with%20MS%20Teams.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECurrently%20we%20use%20Managed%20Meta-Data%20for%20our%20top%20navigation.%20The%20order%20of%20the%20individual%20links%20is%20therefore%20the%20same%20on%20every%20site%20collection.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20now%20created%202%20hubsites%20for%20testing%20and%20added%20my%20links%20there%20for%20testing%20purposes.%20My%20problem%20is%20that%20the%20current%20hub%20site%20is%20always%20listed%20as%20the%20first%20link.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20my%20question%20is%2C%20is%20it%20possible%20to%20remove%20or%20move%20the%20link%20within%20the%20TopNavigation%20with%20a%20setting%20or%20PowerShell%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20a%20lot!%3C%2FP%3E%3CP%3Ewit4r7%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1291988%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdmin%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPowerShell%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1292383%22%20slang%3D%22en-US%22%3ERe%3A%20Same%20navigation%20for%20several%20hub%20sites%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1292383%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EYes%2C%20you%20can%20remove%20the%20default%20link%20of%20current%20hub%20site%20in%20the%20navigation.%20Please%20follow%20the%20below%20steps%20-%3C%2FP%3E%3CP%3EClick%20on%20the%20Gear%20icon%20in%20the%20top%20right%20of%20the%20ribbon%20and%20navigate%20to%20Hub%20Site%20Settings%20and%20then%20click%20on%20the%20toggle%20option%20from%20%22Shown%20in%20Navigation%22%20to%20%22Hidden%20in%20Navigation%22%20and%20then%20Save%20it.%20This%20should%20remove%20the%20link%20of%20your%20current%20default%20hub%20site%20in%20the%20hub%20site%20navigation.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETo%20move%20the%20link%20to%20a%20different%20order%20in%20the%20navigation%2C%20you%20could%20follow%20the%20above%20steps%20and%20then%20click%20on%20the%20edit%20option%20in%20the%20navigation%20to%20add%20the%20current%20hub%20site%20link%20in%20any%20order%20as%20per%20your%20requirement.%20Please%20see%20the%20attached%20screenshot%20for%20the%20configuration.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20330px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F183098i8B073DC0AB2D3A87%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22image.png%22%20alt%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F289383%22%20target%3D%22_blank%22%3E%40wit4r7%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20hope%20this%20is%20helpful%2C%20please%20like%20it%20or%20mark%20it%20as%20a%20solution%20if%20it%20answers%20your%20query.%3C%2FP%3E%3CP%3EThanks.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1292312%22%20slang%3D%22en-US%22%3ERe%3A%20Same%20navigation%20for%20several%20hub%20sites%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1292312%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EYes%2C%20you%20can%20remove%20the%20default%20link%20of%20current%20hub%20site%20in%20the%20navigation.%20Please%20follow%20the%20below%20steps%20-%26nbsp%3B%3C%2FP%3E%3CP%3EClick%20on%20the%20Gear%20icon%20in%20the%20top%20right%20of%20the%20ribbon%20and%20navigate%20to%20Hub%20Site%20Settings%20and%20then%20click%20on%20the%20toggle%20option%20from%20%22Shown%20in%20Navigation%22%20to%20%22Hidden%20in%20Navigation%22%20and%20then%20Save%20it.%20This%20should%20remove%20the%20link%20of%20your%20current%20default%20hub%20site%20in%20the%20hub%20site%20navigation.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETo%20move%20the%20link%20to%20a%20different%20order%20in%20the%20navigation%2C%20you%20could%20follow%20the%20above%20steps%20and%20then%20click%20on%20the%20edit%20option%20in%20the%20navigation%20to%20add%20the%20current%20hub%20site%20link%20in%20any%20order%20as%20per%20your%20requirement.%20Please%20see%20the%20attached%20screenshot%20for%20the%20configuration.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22Hub%20Navigation%20Configuration.png%22%20style%3D%22width%3A%20337px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F183085iFE0B5A2C9C76DA44%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Hub%20Navigation%20Configuration.png%22%20alt%3D%22Hub%20Navigation%20Configuration.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F289383%22%20target%3D%22_blank%22%3E%40wit4r7%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20hope%20this%20is%20helpful%2C%20please%20like%20it%20or%20mark%20it%20as%20a%20solution%20if%20it%20answers%20your%20query.%3C%2FP%3E%3CP%3EThanks.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

Hey,

 

we are currently working on a concept to move from our Classic SharePoint Online to the more modern Modern UI in combination with MS Teams.

 

Currently we use Managed Meta-Data for our top navigation. The order of the individual links is therefore the same on every site collection.

 

I have now created 2 hubsites for testing and added my links there for testing purposes. My problem is that the current hub site is always listed as the first link.

 

So my question is, is it possible to remove or move the link within the TopNavigation with a setting or PowerShell?

 

Thanks a lot!

wit4r7

 

3 Replies
Highlighted

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.

Hub Navigation Configuration.png

 

@wit4r7 

I hope this is helpful, please like it or mark it as a solution if it answers your query.

Thanks.

Highlighted
Thanks, that helps a lot!

Is there a PowerShell command for doing the same?
Highlighted
Best Response confirmed by wit4r7 (Occasional Contributor)
Solution

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.