From 303205dc124a1dde981db5b6401961f797e3a6d4 Mon Sep 17 00:00:00 2001 From: siikamiika Date: Sat, 26 Oct 2019 18:42:57 +0300 Subject: keep url query in history --- ext/bg/js/search.js | 1 + 1 file changed, 1 insertion(+) (limited to 'ext') diff --git a/ext/bg/js/search.js b/ext/bg/js/search.js index 2d130522..8d2e7bf2 100644 --- a/ext/bg/js/search.js +++ b/ext/bg/js/search.js @@ -57,6 +57,7 @@ class DisplaySearch extends Display { const query = DisplaySearch.getSearchQueryFromLocation(window.location.href); if (query !== null) { this.query.value = window.wanakana.toKana(query); + window.history.replaceState({query}, ''); this.onSearchQueryUpdated(query, false); } -- cgit v1.2.3