From beab783225064fee9532998490dbb81cbd8f7678 Mon Sep 17 00:00:00 2001 From: user Date: Mon, 20 May 2024 22:30:05 +0200 Subject: usability - on query update url parameter --- src/static/main.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/static/main.js b/src/static/main.js index b0e1431..ecaf650 100644 --- a/src/static/main.js +++ b/src/static/main.js @@ -36,6 +36,10 @@ function runQueryAfterLoad() { if (!SubmitButton.disabled) { // Disallow double queries SubmitButton.disabled = true; LoadingIndicator.hidden = false; + const url = new URL(location); + url.searchParams.set("Category", CategoryField.value); + history.pushState({}, "", url); + markers.clearLayers(); polygons.clearLayers(); -- cgit v1.2.3