From eac6c98bf15435250d819cbedcefe2c1476e2702 Mon Sep 17 00:00:00 2001 From: kolaente Date: Thu, 12 Jun 2025 13:37:50 +0200 Subject: [PATCH] fix: prevent login screen flash when already authenticated (#933) --- frontend/src/router/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.ts index e2ce0eb65..ebe8e153d 100644 --- a/frontend/src/router/index.ts +++ b/frontend/src/router/index.ts @@ -433,6 +433,8 @@ export async function getAuthForRoute(to: RouteLocation, authStore) { router.beforeEach(async (to, from) => { const authStore = useAuthStore() + await authStore.checkAuth() + if(from.hash && from.hash.startsWith(LINK_SHARE_HASH_PREFIX)) { to.hash = from.hash }