When accessing the Tree of the Get-PNPNavigationNode function with the -Tree param, the Nodes are returned but they are not correctly aligned. (x is marking a space)
In my example the nodes with Id 2014 and 2015 and 2010 are subnodes of node 2011 but in the return they are aligned as they were main nodes! Behavior should be different.
Actual behavior
Spaces added to the subnodes would align is again! (x is marking a space)
Reporting an Issue or Missing Feature
When accessing the Tree of the Get-PNPNavigationNode function with the -Tree param, the Nodes are returned but they are not correctly aligned. (x is marking a space)
PS C:\Programming> $Navigation = Get-PnPNavigationNode -Location TopNavigationBar -Tree:$true PS C:\Programming> $Navigation
── [2009] - Google - http://google.de/ ── [2011] - Technolgies - http://linkless.header/ xx── [2012] - Azure - https://portal.azure.com/#home xxxx── [2013] - Special Hub - https://portal.azure.com/ ── [2014] - MIgration - https://azure.microsoft.com/en-us/services/database-migration/#features ── [2015] - SharePOint - https://support.microsoft.com/de-de/office/was-ist-sharepoint-97b915e6-651b-43b2-827d-fb25777f446f xxxx── [2016] - Column FOrmatting - https://thechriskent.com/tag/column-formatting/ ── [2010] - Test - http://heise.de/
Expected behavior
In my example the nodes with Id 2014 and 2015 and 2010 are subnodes of node 2011 but in the return they are aligned as they were main nodes! Behavior should be different.
Actual behavior
Spaces added to the subnodes would align is again! (x is marking a space)
── [2009] - Google - http://google.de/ ── [2011] - Technolgies - http://linkless.header/ xx── [2012] - Azure - https://portal.azure.com/#home xxxx── [2013] - Special Hub - https://portal.azure.com/ xx── [2014] - MIgration - https://azure.microsoft.com/en-us/services/database-migration/#features xx── [2015] - SharePOint - https://support.microsoft.com/de-de/office/was-ist-sharepoint-97b915e6-651b-43b2-827d-fb25777f446f xxxx── [2016] - Column FOrmatting - https://thechriskent.com/tag/column-formatting/ xx── [2010] - Test - http://heise.de/
Steps to reproduce behavior
PS C:\Programming> $Navigation = Get-PnPNavigationNode -Location TopNavigationBar -Tree:$true PS C:\Programming> $Navigation
Which version of the PnP-PowerShell Cmdlets are you using?
What is the version of the Cmdlet module you are running?
3.25.2009.1 (PowerShell 7 if that is relevant)
How did you install the PnP-PowerShell Cmdlets?