mirror of
https://github.com/rust-lang/mdBook
synced 2024-12-13 14:22:35 +00:00
Remove mark from URL on escape. (#1427)
This commit is contained in:
parent
33d3d9c3ec
commit
09e7bb76dc
1 changed files with 1 additions and 0 deletions
|
@ -427,6 +427,7 @@ window.search = window.search || {};
|
||||||
delete url.params[URL_MARK_PARAM];
|
delete url.params[URL_MARK_PARAM];
|
||||||
url.hash = "";
|
url.hash = "";
|
||||||
} else {
|
} else {
|
||||||
|
delete url.params[URL_MARK_PARAM];
|
||||||
delete url.params[URL_SEARCH_PARAM];
|
delete url.params[URL_SEARCH_PARAM];
|
||||||
}
|
}
|
||||||
// A new search will also add a new history item, so the user can go back
|
// A new search will also add a new history item, so the user can go back
|
||||||
|
|
Loading…
Reference in a new issue