mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-18 17:38:20 +02:00
Fix missing subdirectory support - Fixes #262
This commit is contained in:
2
resources/js/router/index.js
vendored
2
resources/js/router/index.js
vendored
@@ -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 } },
|
||||
|
Reference in New Issue
Block a user