Skip to content

Commit 2f6614c

Browse files
committed
PB-2064: Fix reset app on clicking the confederation logo.
1 parent 40fc0b7 commit 2f6614c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/viewer/src/modules/menu/components/header/HeaderWithSearch.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,10 @@ function resetApp() {
6060
const defaultBackgroundLayerId =
6161
currentTopic.value?.defaultBackgroundLayer?.id ?? currentBackground.value
6262
63-
window.location.href = `${window.location.origin}?lang=${currentLang.value}&topic=${currentTopicId.value}&bgLayer=${defaultBackgroundLayerId}`
63+
// Set the hash-based URL and force reload to reset the app
64+
// This avoids legacy parsing state while performing a complete reload
65+
window.location.hash = `#/map?lang=${currentLang.value}&topic=${currentTopicId.value}&bgLayer=${defaultBackgroundLayerId}`
66+
window.location.reload()
6467
}
6568
</script>
6669

0 commit comments

Comments
 (0)