Completely remove search query parameter when clearing search input
This commit is contained in:
parent
72c7b70267
commit
ef3127dcdf
@ -1925,7 +1925,8 @@ function defocusSearchBar() {
|
||||
clearInputTimeout();
|
||||
if (search_input.value.length === 0) {
|
||||
if (browserSupportsHistoryApi()) {
|
||||
history.replaceState("", window.currentCrate + " - Rust", "?search=");
|
||||
history.replaceState("", window.currentCrate + " - Rust",
|
||||
window.location.href.split("?")[0]);
|
||||
}
|
||||
hideSearchResults();
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user