Fix missing subdirectory support - Fixes #262

This commit is contained in:
Bubka
2023-12-29 00:21:52 +01:00
parent e3ded669ca
commit 5fd7f43968
4 changed files with 8 additions and 4 deletions

View File

@@ -12,7 +12,7 @@ import noRegistration from './middlewares/noRegistration'
import setReturnTo from './middlewares/setReturnTo'
const router = createRouter({
history: createWebHistory('/'),
history: createWebHistory(window.appConfig.subdirectory ? window.appConfig.subdirectory : '/'),
routes: [
{ path: '/start', name: 'start', component: () => import('../views/Start.vue'), meta: { middlewares: [authGuard, setReturnTo], watchedByKicker: true } },
{ path: '/capture', name: 'capture', component: () => import('../views/twofaccounts/Capture.vue'), meta: { middlewares: [authGuard, setReturnTo], watchedByKicker: true } },