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

[FEATURE] Add-PnPNavigationNode Set the option "Open in new tab" on navigation links #2519

Closed
ChredP opened this issue Nov 2, 2022 · 8 comments · Fixed by #3094
Closed
Assignees
Labels
enhancement New feature or request

Comments

@ChredP
Copy link

ChredP commented Nov 2, 2022

Is your feature request related to a problem? Please describe.
As of October 2022 Microsoft has added the option "Open in new tab" to navigation links.
Today this is not possible to configure with PNP Powershell.

Describe the solution you'd like
Add-PnPNavigationNode should have an extra property of type bool called something like "OpenInNewTab"
This should also be supported in Get-PnPSiteTemplate and Invoke-PnPSiteTemplate

Describe alternatives you've considered
As far as I know there is no alternative to this

Additional context
Relevant Microsoft 365 roadmap

@ChredP ChredP added the enhancement New feature or request label Nov 2, 2022
@ChredP ChredP changed the title [FEATURE] Set the option "Open in new tab" on navigation links with Add-PnPNavigationNode [FEATURE] Add-PnPNavigationNode Set the option "Open in new tab" on navigation links Nov 2, 2022
@RubenHerrera86
Copy link

Hello,

I just found this question, Do you know if there is something avaliable in pnp provisioning to set up a node to be open in a new tab? since this is available on Oct 2022

@ChredP
Copy link
Author

ChredP commented Dec 20, 2022

As far as I can tell it's not in pnp provisioning.
So at the moment I don't see any way to set the "Open in new tab" setting via a template or script.

@UrsWedershoven
Copy link

This would be a great enhancement, also in the context of provisioning templates. There exists a property "external", but I do not get, what that does.

@lovnish87
Copy link

Are there any changes for this requirement or it still is not considered yet ?
Microsoft has been recommending to use PnP PowerShell for developments and scripts however still its missing many parameters.

@lovnish87
Copy link

Looking forward for this to be included.

@gautamdsheth gautamdsheth self-assigned this May 5, 2023
gautamdsheth pushed a commit to gautamdsheth/powershell that referenced this issue May 5, 2023
KoenZomers added a commit that referenced this issue May 23, 2023
Feature #2519: open in new tab for navigation links
@gautamdsheth
Copy link
Collaborator

Closing this as a PR has been merged , a new parameter OpenInNewTab has been added.
It will be available in tomorrow's nightly build and the next major version whenever it is released

@fmg-mkotwicki
Copy link

Doesn't appear to be working - no error thrown, but not successfully adding the property.
Import-Module PnP.PowerShell -RequiredVersion 2.1.77 -Force
$sourceConnection = Connect-PnPOnline forsmarshgroup.sharepoint.com/sites/Dev -Interactive -ReturnConnection
Add-PnPNavigationNode -Location QuickLaunch -Url "https://google.com" -Title "googs" -Connection $sourceConnection -OpenInNewTab
Remove-Module PnP.PowerShell -Force

returns
image

but "Open link in new window" remains unchecked
image

@MelvisBass
Copy link

MelvisBass commented Jun 26, 2023

I'm having the similar results as fmg-mkotwicki, no errors but Open in a new tab is not checked when I edit via GUI
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants