Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

Add-SPONavigationNode doesn't work with relative urls #396

Closed
gabbsmo opened this issue Aug 3, 2016 · 1 comment
Closed

Add-SPONavigationNode doesn't work with relative urls #396

gabbsmo opened this issue Aug 3, 2016 · 1 comment

Comments

@gabbsmo
Copy link

gabbsmo commented Aug 3, 2016

This is related to PnP Core But requires changes in PnP-PowerShell if resolved there OfficeDev/PnP-Sites-Core/#693

Reporting an Issue or Missing Feature

Missing Feaure

Expected behavior

I should be able to add the url "/" to navigation

Actual behavior

Add-SPONavigationNode : Invalid URI: The format of the URI could not be determined.

Steps to reproduce behavior

Add-SPONavigationNode -Title "Home" -Url "/" -Location QuickLaunch

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

2016

How did you install the PnP-PowerShell Cmdlets?

PowerShell Gallery

@erwinvanhunen
Copy link
Member

Thank you for reporting this!

I just merged a fix with PR #414 . In the upcoming September release of the cmdlets you will be able to use the cmdlet as follows:

Add-SPONavigation -Title "Home" -Url "/" -Location QuickLaunch -External

It's important to specify -External if you're not in the root web as the location of the URL then points to a location outside of the current web.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants