Forum Discussion
Steve Borgwardt
Jun 14, 2017Brass Contributor
Navigation Heading with no URL doesn't render on site when applying template
We created structural global navigation on a site collection and when I get the PnP template with only the Navigation handlers, it shows Navigation Headings (no links) and the child links like this in the template:
<pnp:NavigationNode Title="Business" Url="" IsExternal="true">
<pnp:NavigationNode Title="Asset Management" Url="https://mysite.sharepoint.com/Pages/Business/am.aspx" IsExternal="true" />
</pnp:NavigationNode>
That seems correct, but when I use Apply-PnPProvisioningTemplate to a new site collection, the 'Business' navigation heading and it's child links don't render or appear in the site settings navigation area.
If I run Get-PnPProvisioningTemplate on this site, it does show the navigation nodes are there, however it shows this instead: (Puts the {site} token in there)
<pnp:NavigationNode Title="Business" Url="{site}" IsExternal="true">
<pnp:NavigationNode Title="Asset Management" Url="https://mysite.sharepoint.com/Pages/Business/am.aspx" IsExternal="true" />
</pnp:NavigationNode>
Has anyone else noticed this with Navigation using headings with no link (common scenario in nav menus)
I opened this also https://github.com/SharePoint/PnP-Sites-Core/issues/1215
1 Reply
- yeah, seems a bug on the ObjectNavigation Handler. I've added more info in GitHub issue.