Skip to content

Commit

Permalink
fix: when authenticated, only redirect from login
Browse files Browse the repository at this point in the history
Signed-off-by: Pedro Lamas <[email protected]>
  • Loading branch information
pedrolamas committed Oct 20, 2024
1 parent 33076b2 commit fd6f3ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ export const appInit = async (apiConfig?: ApiConfig, hostConfig?: HostConfig): P
await store.dispatch('init', { apiConfig, hostConfig, apiConnected })

if (store.state.auth.authenticated) {
if (router.currentRoute.path !== '/') {
if (router.currentRoute.path === '/login') {
await router.push('/')
}
} else {
Expand Down

0 comments on commit fd6f3ad

Please sign in to comment.