-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
PRs show incorrect current version #7622
Comments
This was already fixed in #7340. The problem here is that the API call isn't redirecting correctly for some reason (infinite redirect) |
Maybe do you have some redirects setup in your project? I can't replicate this in other projects |
This is weird, this only happening on this subdomain https://frc-docs--905.org.readthedocs.build/, https://frc-docs--915.org.readthedocs.build/en/915/ works fine |
Seeing an infinite redirect on the footer when the version is 905 https://frc-docs--905.org.readthedocs.build/_/api/v2/footer_html/?project=frc-docs&version=905&page=index&format=jsonp&docroot=%2Fsource%2F It works with 906 https://frc-docs--905.org.readthedocs.build/_/api/v2/footer_html/?project=frc-docs&version=906&page=index&format=jsonp&docroot=%2Fsource%2F Same for other subdomain https://frc-docs--915.org.readthedocs.build/_/api/v2/footer_html/?project=frc-docs&version=905&page=index&format=jsonp&docroot=%2Fsource%2F |
Found the problem, this happens when a version doesn't exist. We delete the version after the PR is closed, so the docs you are seeing are cached, or we don't delete them from storage. This only happens on external versions |
We do custom redirects using the sphinxext-rediraffe plugin. But I do not think that is the issue. |
We don't delete external versions when the PR is closed/merged now. We mark them as inactive, so the infinite redirect shouldn't happen now (in new builds). |
@Daltz333 is that a recent PR build? Can you put the link here? |
Here is a PR that was updated recently https://frc-docs--974.org.readthedocs.build/en/974/ |
I can see the api is returning |
Oh, lol. |
Our PRs constantly link to another PR as the latest version, which isn't current.
https://frc-docs--905.org.readthedocs.build/en/905/
The text was updated successfully, but these errors were encountered: