Skip to content

Commit 6f23a94

Browse files
committed
Fix F7Router issues with browser history
According to https://framework7.io/docs/view#param-browserHistory, either browserHistoryRoot or browserHistorySeparator are required, so that the browser navigation works with F7Router Signed-off-by: Florian Hotze <[email protected]>
1 parent 4d5ecd9 commit 6f23a94

File tree

1 file changed

+5
-2
lines changed
  • bundles/org.openhab.ui/web/src

1 file changed

+5
-2
lines changed

bundles/org.openhab.ui/web/src/App.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,10 +413,10 @@
413413
class="safe-areas"
414414
:master-detail-breakpoint="960"
415415
:browser-history="true"
416+
:browser-history-root="origin"
416417
browser-history-separator=""
417-
browser-history-root=""
418418
v-show="ready"
419-
:animate="uiOptionsStore.disablePageTransitionAnimation ? false : true" />
419+
:animate="!uiOptionsStore.disablePageTransitionAnimation" />
420420
</f7-app>
421421
</template>
422422

@@ -641,6 +641,9 @@ export default {
641641
}
642642
},
643643
computed: {
644+
origin () {
645+
return window.location.origin
646+
},
644647
currentPath () {
645648
// Returns a hierarchical object representation of the currentUrl.
646649
// '/settings/services/openhabcloud/' -> currentPath.settings.services.openhabcloud

0 commit comments

Comments
 (0)