-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Remove query parameters when skipping search results #82234
Remove query parameters when skipping search results #82234
Conversation
Some changes occurred in HTML/CSS/JS. |
Instead of doing this more generally, can we just remove query parameters when people press esc when the search view is active? |
You mean when closing the search result view? I can do that too. |
No, I mean I don't understand why it's implemented for things like pressing esc with the theme changer button. Can't we just add a bit of code to the handler for closing the search view that removes the query parameters? In what other situations are there query parameters added? |
None iirc. |
So can you change this to only handle the case of closing the search view? |
Yes sir! |
6ff0816
to
76c3453
Compare
76c3453
to
eeb5552
Compare
Updated! |
bors r+ |
@bors: r=Nemo157 rollup |
📌 Commit eeb5552 has been approved by |
…n-esc, r=Nemo157 Remove query parameters when skipping search results Fixes rust-lang#81330. This PR changes the following: when pressing ESC and that no other "action" was performed (understand: no closing the search result, or hiding a menu or something along the line), then we discard the URL query parameters (the `?whatever=dsjfs`). What do you think about this change `@rust-lang/rustdoc` ? EDIT: finally we're simply removing the query parameter when we're skipping the search results. r? `@Nemo157`
…n-esc, r=Nemo157 Remove query parameters when skipping search results Fixes rust-lang#81330. This PR changes the following: when pressing ESC and that no other "action" was performed (understand: no closing the search result, or hiding a menu or something along the line), then we discard the URL query parameters (the `?whatever=dsjfs`). What do you think about this change ``@rust-lang/rustdoc`` ? EDIT: finally we're simply removing the query parameter when we're skipping the search results. r? ``@Nemo157``
Rollup of 12 pull requests Successful merges: - rust-lang#79423 (Enable smart punctuation) - rust-lang#81154 (Improve design of `assert_len`) - rust-lang#81235 (Improve suggestion for tuple struct pattern matching errors.) - rust-lang#81769 (Suggest `return`ing tail expressions that match return type) - rust-lang#81837 (Slight perf improvement on char::to_ascii_lowercase) - rust-lang#81969 (Avoid `cfg_if` in `std::os`) - rust-lang#81984 (Make WASI's `hard_link` behavior match other platforms.) - rust-lang#82091 (use PlaceRef abstractions more consistently) - rust-lang#82128 (add diagnostic items for OsString/PathBuf/Owned as well as to_vec on slice) - rust-lang#82166 (add s390x-unknown-linux-musl target) - rust-lang#82234 (Remove query parameters when skipping search results) - rust-lang#82255 (Make `treat_err_as_bug` Option<NonZeroUsize>) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Fixes #81330.
This PR changes the following: when pressing ESC and that no other "action" was performed (understand: no closing the search result, or hiding a menu or something along the line), then we discard the URL query parameters (the
?whatever=dsjfs
). What do you think about this change @rust-lang/rustdoc ?EDIT: finally we're simply removing the query parameter when we're skipping the search results.
r? @Nemo157