From 9a6c51a36d53a2933946893bb6af00f1484ac737 Mon Sep 17 00:00:00 2001 From: krateng Date: Tue, 28 Jan 2025 07:16:46 +0100 Subject: [PATCH] Update search URL, probably fix GH-368 --- maloja/web/static/js/search.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/maloja/web/static/js/search.js b/maloja/web/static/js/search.js index 246479a..17803c1 100644 --- a/maloja/web/static/js/search.js +++ b/maloja/web/static/js/search.js @@ -1,4 +1,4 @@ -var searches = [] +var searches = []; var debounceTimer; function search(searchfield) { @@ -12,7 +12,7 @@ function search(searchfield) { const xhttp = new XMLHttpRequest(); searches.push(xhttp); xhttp.onreadystatechange = searchresult - xhttp.open("GET","/api/search?max=5&query=" + encodeURIComponent(txt), true); + xhttp.open("GET","/apis/mlj_1/search?max=5&query=" + encodeURIComponent(txt), true); xhttp.send(); } }, 1000);