Skip to content

Commit

Permalink
Made sure that callback url & redirect URL are correctly composed
Browse files Browse the repository at this point in the history
  • Loading branch information
BT-Creator committed Jul 24, 2024
1 parent 6657c86 commit 0599aac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion loama/src/components/LoginForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down
4 changes: 2 additions & 2 deletions loama/src/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 0599aac

Please sign in to comment.