X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/b317b796eac8aefdf8b0f989800c2cc078790ae4..45b0b24047c5ecf4d377dc194118017f79616941:/src/components/LastUpdated.svelte?ds=sidebyside

diff --git a/src/components/LastUpdated.svelte b/src/components/LastUpdated.svelte
index f03e8cd..129c893 100644
--- a/src/components/LastUpdated.svelte
+++ b/src/components/LastUpdated.svelte
@@ -12,7 +12,7 @@
     last_api_request_url = url;
 
     if (last_api_request_url) {
-      last_api_request_url = new URL(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();
     }
