[BUG] SiteTemplate not fetching Navigation Node Labels correctly
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 259
- Forks
- 161
- Avg merge
- 10h 33m
- Merged PRs (30d)
- 1
Description
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.
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:
Steps to reproduce behavior
- create label in Navigation (modern page)
- export navigation via
Get-PnPSiteTemplateto xml template file - import in new site with
Invoke-PnPSiteTemplateusing the xml template file
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue by exporting a modern-page navigation label with Get-PnPSiteTemplate and importing it with Invoke-PnPSiteTemplate, using the XML template described in the report. Inspect the navigation export and provisioning flow to determine how an empty-URL label is represented; done means the imported node remains a non-clickable label rather than linking to the site homepage.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100