{"action":"created","issue":{"url":"https://api.github.com/repos/OfficeDev/PnP-PowerShell/issues/106","labels_url":"https://api.github.com/repos/OfficeDev/PnP-PowerShell/issues/106/labels{/name}","comments_url":"https://api.github.com/repos/OfficeDev/PnP-PowerShell/issues/106/comments","events_url":"https://api.github.com/repos/OfficeDev/PnP-PowerShell/issues/106/events","html_url":"https://github.com/OfficeDev/PnP-PowerShell/issues/106","id":113031712,"number":106,"title":"Add-SPONavigation failes for URL with same address as Site URL","user":{"login":"PerOve","id":2383847,"avatar_url":"https://avatars.githubusercontent.com/u/2383847?v=3","gravatar_id":"","url":"https://api.github.com/users/PerOve","html_url":"https://github.com/PerOve","followers_url":"https://api.github.com/users/PerOve/followers","following_url":"https://api.github.com/users/PerOve/following{/other_user}","gists_url":"https://api.github.com/users/PerOve/gists{/gist_id}","starred_url":"https://api.github.com/users/PerOve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PerOve/subscriptions","organizations_url":"https://api.github.com/users/PerOve/orgs","repos_url":"https://api.github.com/users/PerOve/repos","events_url":"https://api.github.com/users/PerOve/events{/privacy}","received_events_url":"https://api.github.com/users/PerOve/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-23T14:33:03Z","updated_at":"2015-11-23T12:10:37Z","closed_at":null,"body":"This week something strange happened. \r\n\r\nWhen I add a node on a site and the node url starts with the same as the site url, the command fail. \r\nExample:\r\nOn a site with the url: https://mytenant.sharepoint.com/sites/sales,\r\nI run: Add-SPONavigationNode -Url 'https://mytenant.sharepoint.com/sites/sales' -Location TopNavigationBar -Title 'Sales'\r\n\r\nNothing happens and there are no error messages.\r\n\r\nIf I do this on the rootsite, I get some errors, and no site realted to the root site is added.\r\nAll urls starting with https://mytenant.sharepoint.com, will fail.\r\n\r\nThe error message for the site /sites/sales is:\r\nAdd-SPONavigationNode : Cannot open \"/sites/sales\": no such file or folder.\r\n CategoryInfo          : WriteError: (:) [Add-SPONavigationNode], ServerException\r\n    + FullyQualifiedErrorId : EXCEPTION,OfficeDevPnP.PowerShell.Commands.AddNavigationNode\r\n"},"comment":{"url":"https://api.github.com/repos/OfficeDev/PnP-PowerShell/issues/comments/158916558","html_url":"https://github.com/OfficeDev/PnP-PowerShell/issues/106#issuecomment-158916558","issue_url":"https://api.github.com/repos/OfficeDev/PnP-PowerShell/issues/106","id":158916558,"user":{"login":"PerOve","id":2383847,"avatar_url":"https://avatars.githubusercontent.com/u/2383847?v=3","gravatar_id":"","url":"https://api.github.com/users/PerOve","html_url":"https://github.com/PerOve","followers_url":"https://api.github.com/users/PerOve/followers","following_url":"https://api.github.com/users/PerOve/following{/other_user}","gists_url":"https://api.github.com/users/PerOve/gists{/gist_id}","starred_url":"https://api.github.com/users/PerOve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PerOve/subscriptions","organizations_url":"https://api.github.com/users/PerOve/orgs","repos_url":"https://api.github.com/users/PerOve/repos","events_url":"https://api.github.com/users/PerOve/events{/privacy}","received_events_url":"https://api.github.com/users/PerOve/received_events","type":"User","site_admin":false},"created_at":"2015-11-23T12:10:37Z","updated_at":"2015-11-23T12:10:37Z","body":"It is a Team Site. STS#0\r\n\r\nI also have some other issues with this root tenant site.\r\nI will try the same code on another o365 tenant root site and let you know how it goes\r\n"}}