diff --git a/core/core-frontend/src/permission.ts b/core/core-frontend/src/permission.ts index 7e6dd1c598..59226024e5 100644 --- a/core/core-frontend/src/permission.ts +++ b/core/core-frontend/src/permission.ts @@ -66,6 +66,9 @@ router.beforeEach(async (to, from, next) => { let pathname = window.location.pathname pathname = pathname.substring(0, pathname.length - 1) let url = window.origin + pathname + '/mobile.html#/index' + if (location.hash?.startsWith('#/preview')) { + url = window.origin + pathname + '/mobile.html' + location.hash + } if (window.location.search) { url += window.location.search }