From 1a443e6546cc61da585605f6d5dd3d1fc1f3b414 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jesper=20Engstr=C3=B6m?= Date: Mon, 9 Dec 2024 17:43:18 +0100 Subject: [PATCH] Fix --- lxl-web/src/lib/components/Search.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lxl-web/src/lib/components/Search.svelte b/lxl-web/src/lib/components/Search.svelte index dff6dae82..78e12b6c4 100644 --- a/lxl-web/src/lib/components/Search.svelte +++ b/lxl-web/src/lib/components/Search.svelte @@ -42,7 +42,7 @@ afterNavigate(({ to }) => { /** Update input value after navigation on /find route */ if (to?.url) { - let param = $page.url.searchParams.get('_x') === 'advanced' ? '_q' : '_i'; + let param = $page.url.searchParams.get('_x') === 'advanced' || useSuperSearch ? '_q' : '_i'; q = $page.params.fnurgel ? '' : new URL(to.url).searchParams.get(param)?.trim() || ''; } });