Skip to content
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

Redirect minor versions to latest patch #360

Open
jdno opened this issue Oct 30, 2023 · 0 comments
Open

Redirect minor versions to latest patch #360

jdno opened this issue Oct 30, 2023 · 0 comments

Comments

@jdno
Copy link
Member

jdno commented Oct 30, 2023

We got a request on Zulip to redirect requests for the documentation from the minor version (e.g. https://doc.rust-lang.org/1.65/std/boxed/struct.Box.html) to the latest patch for that version (e.g. https://doc.rust-lang.org/1.65.0/std/boxed/struct.Box.html).

The reason is that the first URL does not exist and will return HTTP 404 Not Found, while the latter works fine.

The CloudFront distribution is configured here and is already using a Lambda router to issue some redirects.

@jdno jdno self-assigned this Oct 30, 2023
@jdno jdno removed their assignment Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Ready
Development

No branches or pull requests

1 participant