Docs: "Read more in Docs" links ignore selected version (always redirect to latest)
Environment
Docs website: https://nuxt.com/
Reproduction
-
Go to a versioned documentation page, for example: https://nuxt.com/docs/v3.20/guide/...
-
Locate a section with a “Read more in Docs > API > Components > NuxtLink” type link.
-
Click the link.
-
Observe that the opened page is under: https://nuxt.com/docs/api/... (latest)
-
instead of: https://nuxt.com/docs/v3.20/api/...
Describe the bug
When browsing the documentation with a specific version selected (for example v3.20), some internal "Read more in Docs" links redirect back to the latest docs instead of staying within the selected version.
This causes the user to unintentionally leave the versioned documentation context.
Additional context
No response
Logs
@MaximeBignolet Indeed thank you for reporting the issue, I could make a fix to replace the to with the current doc version but the problem is that sometimes we would be redirected on a 404 🤔