From fd6f3ad36c2538bfe53a6b8cae4f90c9b511d4a2 Mon Sep 17 00:00:00 2001 From: Pedro Lamas Date: Sun, 20 Oct 2024 17:51:10 +0100 Subject: [PATCH] fix: when authenticated, only redirect from login Signed-off-by: Pedro Lamas --- src/init.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/init.ts b/src/init.ts index 14d7ec68ac..ae7dc59e6c 100644 --- a/src/init.ts +++ b/src/init.ts @@ -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 {