-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Fix RTD language switcher redirecting to nonexistent /en/4.x/
branch
#11349
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
Fix RTD language switcher redirecting to nonexistent /en/4.x/
branch
#11349
Conversation
54df64b
to
c95c900
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense to me and the implementation looks fine.
It would be nice to match and replace only the start of the path, but realistically it doesn't seem like the current approach will cause any issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This bothered me for the longest time.
c95c900
to
fa12131
Compare
If we were redirected to `/en/4.x/` as a result of the RTD language selector, redirect to `/en/stable/` instead, as English does not have a `4.x` branch. For maintenance reasons, non-English languages have a single `4.x` branch that is the counterpart of `4.3`, `4.4`, `4.5` and so on.).
fa12131
to
1ffd71c
Compare
Thanks! |
If we were redirected to
/en/4.x/
as a result of the RTD language selector, redirect to/en/stable/
instead, as English does not have a4.x
branch.For maintenance reasons, non-English languages have a single
4.x
branch that is the counterpart of4.3
,4.4
,4.5
and so on.).Bugsquad edit: Followup to #11304