[BUG] Add-PnPNavigationNode behaviour issue on root site
メンテナーはふだん 1 日以内に返信
評価
この issue はまだ評価されていません。
説明
Scripting the creation of hub navigation on the root site of SharePoint.
Add-PnPNavigationNode -Title "Test" -Url "https://mytenant.sharepoint.com/sites/targetsite" -Location TopNavigationBar
This command on any other site under ...sharepoint.com/sites/ works fine
On the root SharePoint site it gives an error saying the target can't be found, it tells us it's the file '/sites/targetsite' that is missing.
Add-PnPNavigationNode: Cannot open "/sites/targetsite": no such file or folder.
Adding the -external switch resolves this as it obviously stops it shortening the url to a relative one.
We have spent a week trying to work out what is going on here. The issue came up because the menu we were creating was a copy from a dev site where all the links were to "https://mytenant.sharepoint.com". These all created fine on the homesite but were being marked as ''internal' since we didn't use the switch. This meant that users were then unable to edit the target url in the GUI to another site or page. The GUI doesn't show the 'external' option and once a node is created without it there's no way to change it. The new GUI doesn't give any errors, it either undoes the change when you save or greys out the Save button and doesn't change it. Using the old GUI which you can still find on the Site Settings page shows the same error, Cannot open "/sites/targetsite": no such file or folder.
What is the issue? It may be a SharePoint architecture issue rather than PnP but some thoughts
- Can -external be on by default. The property appears to be deprecated by MS, in the GUI its not an option so having it set automatically will remove this issue?
- Why can't the target be found, the relative url looks right '/sites/targetsite' ?
- If I'm giving the full url and not /sites/targetsite should it not be able to work out what to do slightly better?
What is the version of the Cmdlet module you are running?
3.1.0
- 主要言語
- C#
- スター
- 910
- フォーク
- 407
- 平均マージ
- 2日 19時間
- マージ済み PR(30日)
- 12
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
pnp/powershell のほかの issue
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
pnp/powershell#5476 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 52/100
pnp/powershell#5492 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 52/100
pnp/powershell#5485 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
pnp/powershell#5477 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
pnp/powershell#5466 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
area-multitenancy area-security p1-recommended priority-high technical-debt
難易度 2/5 1時間未満 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
help wanted needs-unity ready for a contributor
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
eyalgolan/statecraft-israel#1542 ·
メンテナーはふだん 1 日以内に返信
-
kind/enhancement Provider Upgrade pulumi/pulumi-azure R1 Task
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
pulumi/pulumi-azure#3669 ·
-
type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
webclient does not start対応中かも @PawelTroka が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
PawelTroka/Computator.NET#257 ·
メンテナーはふだん 1 日以内に返信