SharePoint Hub Navigation Not Working

B D 21 Reputation points

In SharePoint 365, I have a hub site and numerous child sites with that hub site specified as the parent.

However, when setting up hub navigation, when I add "Associate Child Hubs" none of the child hubs appear in the list. The only link that comes up is the hub site itself.

I have tried removing all hubs and recreating/reassociating them. Tried Mega Menus and Traditional. Nothing seems to make them work.

Any suggestions?


  • Brad
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
8,605 questions
0 comments No comments
{count} votes

6 answers

Sort by: Most helpful
  1. B D 21 Reputation points

    Hi, JinweiLi. I was traveling, but will be able to try your solution this week. Thanks for the follow-up.

    1 person found this answer helpful.
    0 comments No comments

  2. S D Andrews 151 Reputation points

    Hi BD,

    Welcome to the Q&A Forums.

    One thing to clarify please. Are you allowing any time for the changes to apply to the associated children sites? On occasion I've had to wait a little bit before changes became visible.


    0 comments No comments

  3. B D 21 Reputation points

    Thanks for responding. This has been a problem spanning several weeks, so yes.

    Not sure if it is relevant, but I also turned off navigation caching in an attempt to see if that made a difference, but no luck.

    0 comments No comments

  4. Jinwei Li-MSFT 4,716 Reputation points Microsoft Vendor

    Hi @B D ,

    I suggest you could try to use PnP-PowerShell to add "Associate Child Hubs".

    #Config Variables  
    $TenantSiteUrl = ""  
    $HubSiteURL = ""  
    $SiteURL = ""  
    #Connect to PnP Online  
    Connect-PnPOnline -Url $TenantSiteUrl -Credentials (Get-Credential)  
    #Associate Site collection with HubSite  
    Add-PnPHubSiteAssociation -Site $SiteURL -HubSite $HubSiteURL  

    If you want to add multiple sites to a Hub site, please try to use this code:

    #Config Variables  
    $TenantSiteUrl = ""  
    $HubSiteURL = ""  
    $SitesToConnect = "","",""  
    Try {   
        #Connect to PnP Online  
        Connect-PnPOnline -Url $TenantSiteUrl -Interactive  
        #Get the Hub site  
        $HubSite = Get-PnPHubSite -Identity $HubSiteURL  
        #Get all sites connected to the Hub  
        $SitesConnectedToHub = Get-PnPHubSiteChild -Identity $HubSiteURL  
        #Associate each Site collection with HubSite  
        ForEach ($Site in $SitesToConnect)  
            #Check if the site is alreay connected with the Hub  
            If($SitesConnectedToHub -contains $Site)  
                Write-host "$Site is Already connected to Hub Site" -ForegroundColor Yellow  
                Add-PnPHubSiteAssociation -Site $Site -HubSite $HubSiteURL  
                Write-host "$Site Connected to HUB Site Successfully!" -ForegroundColor Green  
    catch {  
        write-host "Error: $($_.Exception.Message)" -foregroundcolor Red  

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

  5. B D 21 Reputation points

    @Jinwei Li-MSFT , unfortunately, while the script did work to associate child hubs, nothing appears in navigation under Associated Hubs or Associated Child Hubs.