We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40fc0b7 commit 2f6614cCopy full SHA for 2f6614c
packages/viewer/src/modules/menu/components/header/HeaderWithSearch.vue
@@ -60,7 +60,10 @@ function resetApp() {
60
const defaultBackgroundLayerId =
61
currentTopic.value?.defaultBackgroundLayer?.id ?? currentBackground.value
62
63
- window.location.href = `${window.location.origin}?lang=${currentLang.value}&topic=${currentTopicId.value}&bgLayer=${defaultBackgroundLayerId}`
+ // 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()
67
}
68
</script>
69
0 commit comments