Skip to content

fix: Ensure user stays on same content page when switching doc versions #1303

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 9, 2025

Conversation

rschristian
Copy link
Member

When switching between doc versions, we're meant to keep the user on the same page if it's available, i.e., v8 Forms -> v10 Forms. However, due to a bad check in the callback, every change of the doc version would send the user to the Getting Started page instead.

config.docs mirrors our sidebar hierarchy and so is a list of subsections ("Introduction", "Essentials", etc) that would have to be iterated over, but we have route utils to deal with this already.

@rschristian rschristian merged commit 7668881 into master Jul 9, 2025
5 checks passed
@rschristian rschristian deleted the fix/version-switch-doc branch July 9, 2025 06:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy