]> git.openstreetmap.org Git - nominatim-ui.git/commitdiff
Fix: Page does not reload due to relative base url (#149)
authorYash Srivastava <52625656+darkshredder@users.noreply.github.com>
Sun, 16 May 2021 15:47:04 +0000 (21:17 +0530)
committerGitHub <noreply@github.com>
Sun, 16 May 2021 15:47:04 +0000 (17:47 +0200)
src/components/LastUpdated.svelte

index f03e8cd69da89ca06f147bd2a0f457b85cecb74d..129c89341cdbb97d91cef3958d5e0336bc0dc523 100644 (file)
@@ -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();
     }