You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Relative links to cmdlets from About/Functions/Providers topics are broken #1548
With the migration of the PowerShell docs from MSDN to docs.microsoft.com, the relative links to content across modules is broken in GitHub but the links work in the website. This is due to the way that the web pages are built. Links inside of any topics contained in subfolders of a module are affected. The subfolders include topics for About, Functions, and Providers. The result is that the link in GitHub appears to be broken when you are navigating through the content in GitHub. However the links on the page rendered in docs.microsoft.com are correct.
For example, look at document: PowerShell-Docs/reference/6/Microsoft.PowerShell.Core/About/about_Arithmetic_Operators.md
At the bottom of that document there is a link to the Get-Date cmdlet help topic.
The relative path used in that link is: ../Microsoft.PowerShell.Utility/Get-Date.md.
The correct relative path is: ../../Microsoft.PowerShell.Utility/Get-Date.md.
If you click on that link in the GitHub view of that document you get a 404 error from GitHub. However, that link works properly in the webview.
This is a known issue and we are investigating a fix for the website build process.
Version(s) of document impacted
Impacts 6 document
Impacts 5.1 document
Impacts 5.0 document
Impacts 4.0 document
Impacts 3.0 document
Workaround
Until the build is fixed, the relative path link will be broken in GitHub. The build process is assuming a flatter folder structure. So the build expect there to be only one level of nesting instead of two. Follow the pattern above with the single ../ relative path. After the build has been fixed, we can fix the relative links so that they work in GitHub.
changed the title [-]Relative links to cmdlets in About/Functions/Providers topics are broken[/-][+]Relative links to cmdlets from About/Functions/Providers topics are broken[/+]on Aug 9, 2017
Activity
[-]Relative links to cmdlets in About/Functions/Providers topics are broken[/-][+]Relative links to cmdlets from About/Functions/Providers topics are broken[/+]