Skip to content

Keep arguments in redirections #2800

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

Conversation

GuillaumeGomez
Copy link
Member

Fixes #2786.

I created a new type to ensure that the escaping was done only once.

@GuillaumeGomez GuillaumeGomez requested a review from a team as a code owner April 11, 2025 18:33
@github-actions github-actions bot added the S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed label Apr 11, 2025
Copy link
Member

@syphar syphar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we probably also should update the rustdoc_redirector_handler to forward the query args.

Also we should see if the trailing-slash-redirect we're using also forwards the query (not sure if we should spend time on fixing it if it doesn't).

@GuillaumeGomez
Copy link
Member Author

Only using the query now.

@syphar
Copy link
Member

syphar commented Apr 14, 2025

we probably also should update the rustdoc_redirector_handler to forward the query args.

did you intentionally leave out the redirector handler?

@GuillaumeGomez
Copy link
Member Author

GuillaumeGomez commented Apr 14, 2025

There was only one case which needed it as most of them are already using redirect_to_doc which adds redirections. Anyway, I think all of them are covered now.

Copy link
Member

@syphar syphar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nearly there, thank you for working on this!

@syphar
Copy link
Member

syphar commented Apr 19, 2025

generally: with all the github noise I typically work with the personal "review requests" tab quite much, and check these more often than notifications in general, so re-requesting a review when it's ready again really helps me.

( I'll see the other notifications later too, but not as fast)

@GuillaumeGomez
Copy link
Member Author

generally: with all the github noise I typically work with the personal "review requests" tab quite much, and check these more often than notifications in general, so re-requesting a review when it's ready again really helps me.

( I'll see the other notifications later too, but not as fast)

Noted!

@GuillaumeGomez GuillaumeGomez force-pushed the keep-args-in-redirections branch from 39430b6 to a9f794d Compare May 7, 2025 19:19
@GuillaumeGomez
Copy link
Member Author

Added your test. :)

@GuillaumeGomez GuillaumeGomez enabled auto-merge (rebase) May 8, 2025 10:15
@GuillaumeGomez GuillaumeGomez merged commit 61c1d83 into rust-lang:master May 8, 2025
11 checks passed
@GuillaumeGomez GuillaumeGomez deleted the keep-args-in-redirections branch May 8, 2025 10:15
@github-actions github-actions bot added S-waiting-on-deploy This PR is ready to be merged, but is waiting for an admin to have time to deploy it and removed S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed labels May 8, 2025
@syphar syphar removed the S-waiting-on-deploy This PR is ready to be merged, but is waiting for an admin to have time to deploy it label May 9, 2025
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.

docs.rs removes query parameters on redirect
2 participants