pnp / pnp/pnpframework

[BUG] SiteTemplate not fetching Navigation Node Labels correctly

Open
#1,004 0 comments 0 reactions 0 assignees View on GitHub

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.
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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.