With the switch to Astro, all urls now end in a
trailing slash. This is a known change, however,
the sidebar navigation was not updated to reflect
that. Now, the sidebar navigation will correctly
link to the correct URL which will avoid the
browser redirecting to the correct URL. This change also updates Xref links automatically as well. This will help Google Search Console results and SEO.
Motivation and Context
This will help Google Search Console results and SEO.
Testing
[x] I have previewed these changes using the Docker Container or another method before submitting this pull request.
Run yarn dev. Inspect the left side bar item for "Why Chocolatey". Notice that the url now ends with a trailing slash why/ and when clicked, takes you to that url directly.
Run yarn build and then yarn preview (to see production build). Inspect the left side bar item for "Why Chocolatey". Notice that the url now ends with a trailing slash why/ and when clicked, takes you to that url directly.
In both cases, the left side navigation is correctly highlighted with the active page no matter where you navigate to.
Change Types Made
[x] Minor documentation fix (typos etc.).
[ ] Major documentation change (refactoring, reformatting or adding documentation to existing page).
[ ] New documentation page added.
[ ] The change I have made should have a video added, and I have raised an issue for this.
Issue #
Change Checklist
[ ] Requires a change to menu structure (top or left-hand side)/
Description Of Changes
With the switch to Astro, all urls now end in a trailing slash. This is a known change, however, the sidebar navigation was not updated to reflect that. Now, the sidebar navigation will correctly link to the correct URL which will avoid the browser redirecting to the correct URL. This change also updates Xref links automatically as well. This will help Google Search Console results and SEO.
Motivation and Context
This will help Google Search Console results and SEO.
Testing
yarn dev
. Inspect the left side bar item for "Why Chocolatey". Notice that the url now ends with a trailing slashwhy/
and when clicked, takes you to that url directly.yarn build
and thenyarn preview
(to see production build). Inspect the left side bar item for "Why Chocolatey". Notice that the url now ends with a trailing slashwhy/
and when clicked, takes you to that url directly.Change Types Made
Change Checklist
Related Issue
n/a