diff --git a/src/lib/components/card.svelte b/src/lib/components/card.svelte
index a9d12f9bc..a1c5c3e90 100644
--- a/src/lib/components/card.svelte
+++ b/src/lib/components/card.svelte
@@ -1,7 +1,16 @@
-
+
-
+
diff --git a/src/lib/layout/shell.svelte b/src/lib/layout/shell.svelte
index 79d720472..77357fa62 100644
--- a/src/lib/layout/shell.svelte
+++ b/src/lib/layout/shell.svelte
@@ -22,7 +22,7 @@
import { sdkForConsole } from '$lib/stores/sdk';
import { base } from '$app/paths';
import { user } from '$lib/stores/user';
- import { goto } from '$app/navigation';
+ import { beforeNavigate, goto } from '$app/navigation';
import { browser } from '$app/environment';
import { wizard } from '$lib/stores/wizard';
@@ -67,6 +67,16 @@
}
}
};
+
+ beforeNavigate((n) => {
+ /**
+ * Hide wizard when navigation is triggered by popstate.
+ */
+ if (n.type === 'popstate' && $wizard.show) {
+ wizard.hide();
+ n.cancel();
+ }
+ });
diff --git a/src/lib/layout/wizard.svelte b/src/lib/layout/wizard.svelte
index ee46327de..97de61a1d 100644
--- a/src/lib/layout/wizard.svelte
+++ b/src/lib/layout/wizard.svelte
@@ -114,11 +114,12 @@