fix: Adapt URLs generated in the backend to new routes
Signed-off-by: Julius Knorr <jus@bitgrid.net>
This commit is contained in:
committed by
backportbot[bot]
parent
7cc43c706b
commit
81c8aad66f
@@ -144,8 +144,8 @@ const router = new Router({
|
||||
|
||||
router.beforeEach((to, from, next) => {
|
||||
// Redirect if fullPath begins with a hash (ignore hashes later in path)
|
||||
if (to.fullPath.substring(0, 2) === '/#') {
|
||||
const path = to.fullPath.substring(2)
|
||||
if (to.hash.substring(0, 2) === '#/') {
|
||||
const path = to.fullPath.replace('/apps/deck/#/', '/apps/deck/')
|
||||
next(path)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user