aboutsummaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-11-13 09:29:58 -0500
committerGitHub <noreply@github.com>2021-11-13 09:29:58 -0500
commit657292733dce557d2c71c2d5b336751b590b1828 (patch)
tree4b74e8214b5bac80076e36244efc8bd0dffe0cdd /ext
parentc1a51ae41f77558a281b5d34ad1527049b68bd59 (diff)
Fix search page not being cleared properly (#2005)
Diffstat (limited to 'ext')
-rw-r--r--ext/js/display/display.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/js/display/display.js b/ext/js/display/display.js
index ba7ebd91..caa1ce10 100644
--- a/ext/js/display/display.js
+++ b/ext/js/display/display.js
@@ -552,7 +552,7 @@ class Display extends EventDispatcher {
// Prepare
const urlSearchParams = new URLSearchParams(location.search);
let type = urlSearchParams.get('type');
- if (type === null) { type = 'terms'; }
+ if (type === null && urlSearchParams.get('query') !== null) { type = 'terms'; }
const fullVisible = urlSearchParams.get('full-visible');
this._queryParserVisibleOverride = (fullVisible === null ? null : (fullVisible !== 'false'));