-
Notifications
You must be signed in to change notification settings - Fork 211
Go to latest version breaks for /src/ when item was renamed #513
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
Comments
I can't reproduce this bug 😆 |
Ok it turns out the bug is much more limited than I thought which is good - it's only if the item was renamed or deleted. Test case: https://docs.rs/pyo3/0.2.7/src/pyo3/objects/exc.rs.html. This redirects to https://docs.rs/pyo3/0.8.4/src/pyo3/?search=rs, which gives a 404. I think the right thing to do would be to redirect to https://docs.rs/pyo3/0.8.4/pyo3/?search=exc - that doesn't keep you in source view, but you still get a search page. |
Mentoring instructions: This only requires changing the frontend.
There's more information about this in the comments for the function I linked. Note that the URL may include both a platform and |
I found another example, If you go to this link |
This has been half-fixed - we now redirect to https://docs.rs/pyo3/0.13.2/pyo3/?search=rs, which is correct except that the search query is wrong. |
I noticed this while investigating #357: any time you click 'Go To Latest' while viewing source code, it redirects to https://docs.rs/:crate/:version/src/:crate/?search=rs. This is clearly not desired behavior (it gives a 404).
Don't have time to debug right now but the relevant code is
docs.rs/src/web/rustdoc.rs
Line 293 in d9d7a33
The text was updated successfully, but these errors were encountered: