Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] SiteTemplate not fetching Navigation Node Labels correctly #1004

Open
Myjestic opened this issue Apr 3, 2024 · 0 comments
Open

[BUG] SiteTemplate not fetching Navigation Node Labels correctly #1004

Myjestic opened this issue Apr 3, 2024 · 0 comments

Comments

@Myjestic
Copy link

Myjestic commented Apr 3, 2024

Reporting an Issue or Missing Feature

I created a xml template with Get-PnPSiteTemplate or C# from a Site that uses a foldable node in Navigation. This node is set as "label" without a link.
image
The Label will be exported as:
<pnp:NavigationNode Title="Administration" Url="" IsExternal="true">

If applying the template the node will be created but it is linked to the homepage of the SP-Site. It should not be clickable.

Expected behavior

Nodes marked as label should be exported and imported as label, not as clickable link.

Actual behavior

Thats what a formerly label will be after provisioning:
image

Steps to reproduce behavior

  • create label in Navigation (modern page)
  • export navigation via Get-PnPSiteTemplate to xml template file
  • import in new site with Invoke-PnPSiteTemplate using the xml template file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant