keep url query in history
This commit is contained in:
parent
704864b7b2
commit
303205dc12
@ -57,6 +57,7 @@ class DisplaySearch extends Display {
|
|||||||
const query = DisplaySearch.getSearchQueryFromLocation(window.location.href);
|
const query = DisplaySearch.getSearchQueryFromLocation(window.location.href);
|
||||||
if (query !== null) {
|
if (query !== null) {
|
||||||
this.query.value = window.wanakana.toKana(query);
|
this.query.value = window.wanakana.toKana(query);
|
||||||
|
window.history.replaceState({query}, '');
|
||||||
this.onSearchQueryUpdated(query, false);
|
this.onSearchQueryUpdated(query, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user