pnp / PnP-PowerShell

SharePoint PnP PowerShell CmdLets
https://pnp.github.io/powershell
Other
990 stars 663 forks source link

New-PnPWeb inherits navigation from site collection #867

Open ghost opened 7 years ago

ghost commented 7 years ago

Issue

Expected behavior

The newly created project site does not inherit the top link bar from its parent site collection when invoking New-PnPWeb without the -InheritNavigation switch.

Actual behavior

The mirror opposite: the new site inherits the top link bar from its parent site collection. This means when Apply-PnPProvisioningTemplate is used afterwards the error "The top link bar can only be edited for a Web site with unique navigation." is thrown.

Steps to reproduce behavior

Connect-PnPOnline -Url "https://tenant.sharepoint.com/sites/sitecollection" New-PnPWeb -Title "title" -Url "relativeurl" -Template "PROJECTSITE#0"

Which version of the PnP-PowerShell Cmdlets are you using?

What is the version of the Cmdlet module you are running?

2.15.1705.0

How did you install the PnP-PowerShell Cmdlets?

bsaustin98 commented 6 years ago

I'm having the same issue.

GiantX1 commented 6 years ago

I also have the same issue using the March Release.

rniggemann commented 5 years ago

I am having this issue with 3.7.1903.0