Skip to content

[BUG] Add-PnPNavigationNode OpenInNewTab not visible in UI #3621

@JuergenRB

Description

@JuergenRB

Reporting an Issue or Missing Feature

Issue with Add-PnPNavigationNode -OpenInNewTab

Expected behavior

Link opens in a new tab and you can see the setting in the UI

Actual behavior & Steps to reproduce behavior

If I set the property for a RootNode - it works and you can see the hook in the UI.

image
image

If I set the property for a ChildNode with the Id or with the ParentNode as parent parameter, I get a warning and it is not visible in the UI. However, the link opens in a new tab.
image
image

If I look at the MenuState, I can see differences in the values / attributes for OpenInNewTab:

RootNode:

<d:Key>2028</d:Key>
<d:Nodes m:type="Collection(SP.MenuNode)"/>
<d:NodeType m:type="Edm.Int32">0</d:NodeType>
<d:OpenInNewWindow m:type="Edm.Boolean">true</d:OpenInNewWindow>
<d:SimpleUrl>https://github.com/pnp/powershell</d:SimpleUrl>
<d:Title>RootNode</d:Title>

SubNode:

<d:Key>2031</d:Key>
<d:Nodes m:type="Collection(SP.MenuNode)"/>
<d:NodeType m:type="Edm.Int32">0</d:NodeType>
<d:OpenInNewWindow m:null="true"/>
<d:SimpleUrl>https://github.com/pnp/powershell</d:SimpleUrl>
<d:Title>SubNode_ById</d:Title>

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

2.2.0

Which operating system/environment are you running PnP PowerShell on?

Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions