X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/bb8dd3ac61b84f7aaf492be006528974938168bf..d429667c4eb8ef7968a96612b3615ccf0bb1fccc:/src/App.svelte

diff --git a/src/App.svelte b/src/App.svelte
index e543afd..d120173 100644
--- a/src/App.svelte
+++ b/src/App.svelte
@@ -4,7 +4,6 @@
 
   import { page, refresh_page } from './lib/stores.js';
 
-  import Header from './components/Header.svelte';
   import Footer from './components/Footer.svelte';
   import ReportIssueModal from './components/ReportIssueModal.svelte';
   import SearchPage from './pages/SearchPage.svelte';
@@ -18,7 +17,9 @@
   refresh_page();
 </script>
 
-<Header/>
+<!-- deal with back-button and other user action -->
+<svelte:window on:popstate={() => refresh_page()} />
+
 {#if view === 'search'}
 <SearchPage />
 {:else if view === 'reverse'}
