From bbdfeebd61aad4d5b1316ef134fddbc878d9d76d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jesper=20Engstr=C3=B6m?= Date: Thu, 19 Dec 2024 14:36:00 +0100 Subject: [PATCH] fix(lxlweb): Provide lang to supersearch endpoint --- 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 1d71cc7d8..bf27a2b6e 100644 --- a/lxl-web/src/lib/components/Search.svelte +++ b/lxl-web/src/lib/components/Search.svelte @@ -88,7 +88,7 @@ bind:value={q} language={lxlQuery} placeholder={$page.data.t('search.search')} - endpoint={'/api/supersearch'} + endpoint={`/api/${$page.data.locale}/supersearch`} queryFn={(query, cursor) => { return new URLSearchParams({ _q: query,