From 4dd22338d0df21ca9dc6ea9d98e6de3290382fdc Mon Sep 17 00:00:00 2001 From: Chris Abraham Date: Sun, 24 Mar 2024 09:00:25 +0700 Subject: [PATCH] Fixes language-specific search page issue (#2087) Signed-off-by: Chris Abraham --- assets/js/search.js | 3 +-- layouts/partials/search-input.html | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/assets/js/search.js b/assets/js/search.js index 47a71fa15a..42250f4e94 100644 --- a/assets/js/search.js +++ b/assets/js/search.js @@ -27,8 +27,7 @@ limitations under the License. } var query = $(this).val(); - var searchPage = "{{ "search/" | relLangURL }}?q=" + query; - console.log(searchPage); + var searchPage = $(this).data('search-page') + "?q=" + query; document.location = searchPage; return false; diff --git a/layouts/partials/search-input.html b/layouts/partials/search-input.html index e9dfee8641..c062f00513 100644 --- a/layouts/partials/search-input.html +++ b/layouts/partials/search-input.html @@ -1,4 +1,4 @@
- +