X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/0be37383d730a360a81aad1c5e58a9e9a64a6515..HEAD:/src/components/LastUpdated.svelte diff --git a/src/components/LastUpdated.svelte b/src/components/LastUpdated.svelte index 44738f2..0d7768d 100644 --- a/src/components/LastUpdated.svelte +++ b/src/components/LastUpdated.svelte @@ -11,6 +11,12 @@ last_api_request_url_store.subscribe(url => { last_api_request_url = url; + if (last_api_request_url) { + last_api_request_url = new URL(last_api_request_url, window.location.origin); + last_api_request_url.searchParams.delete('polygon_geojson'); + last_api_request_url = last_api_request_url.toString(); + } + if (fetch_running || last_updated_date) return; fetch_running = true; @@ -42,7 +48,7 @@