From 0599aac0d92f4b9895baeaf92575265888934c7f Mon Sep 17 00:00:00 2001 From: Bo Robbrecht Date: Wed, 24 Jul 2024 09:52:24 +0200 Subject: [PATCH] Made sure that callback url & redirect URL are correctly composed --- loama/src/components/LoginForm.vue | 2 +- loama/src/router/index.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/loama/src/components/LoginForm.vue b/loama/src/components/LoginForm.vue index 94c0fba..760dac4 100644 --- a/loama/src/components/LoginForm.vue +++ b/loama/src/components/LoginForm.vue @@ -52,7 +52,7 @@ const login = () => { store.session.login({ oidcIssuer: issuer, - redirectUrl: new URL('/home/', window.location.href).toString(), + redirectUrl: new URL(`${import.meta.env.BASE_URL}home/`, window.location.href).toString(), clientName: 'LOAMA', }) .then(() => { diff --git a/loama/src/router/index.ts b/loama/src/router/index.ts index b8b4562..edd2fe9 100644 --- a/loama/src/router/index.ts +++ b/loama/src/router/index.ts @@ -9,12 +9,12 @@ const router = createRouter({ history: createWebHistory(import.meta.env.BASE_URL), routes: [ { - path: '/', + path: `/`, name: 'login', component: LoginView }, { - path: '/home/:filePath(.*)', + path: `/home/:filePath(.*)`, name: 'home', component: HomeView }