0

Can someone let me know how i can update/delete the global navigation link on my sharepoint online hub site?

It was created by someone else who is not with company anymore and i don't find a way to deal with it. I tried to read the navigation link but it just returns as 1. I dont find any option in site settings as well to check this.

$TopNavs = Get-PnPNavigationNode -Location TopNavigationBar | Select-Object Title,Url, Identer image description here

0

Go to settings-> Hub site settings, choose "Hidden in navigation". As the below picture shows:

enter image description here

| improve this answer | |
  • Thank you so much for the screenshot. Wondering how did i miss this without checking the Site Settings menu. – Nethi Swapna Jul 9 at 13:11
0

You need to use the Set-NavigationNode, refer to the below sample code:

$navigationNodes = Get-PnPNavigationNode -Location $Location 

 foreach($navigationNode in $navigationNodes)
   {

    $node = Get-PnPNavigationNode -Id $navigationNode.Id

 Set-NavigationNode $node

   }

  Invoke-PnPQuery

Reference:

For details refer to the below article:

Update SharePoint Navigation After Site Rename

| improve this answer | |
  • When i run below command i don't get result $navigationNodes = Get-PnPNavigationNode -Location "TopNavigationBar" – Nethi Swapna Jul 7 at 18:07
  • I need to update/delete which is highlighted in the image. Not the ones beside logo(Home,Documents, Site Contents.. – Nethi Swapna Jul 7 at 18:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.