diff --git a/frontend/vue-app/src/router/index.ts b/frontend/vue-app/src/router/index.ts index 7053648..6a57674 100644 --- a/frontend/vue-app/src/router/index.ts +++ b/frontend/vue-app/src/router/index.ts @@ -264,7 +264,13 @@ router.beforeEach(async (to, from, next) => { } // If already logged in and trying to access /auth or landing, redirect to appropriate view - if ((to.path.startsWith('/auth') || to.path === '/') && isUserLoggedIn.value) { + // Allow reset-password and verify through even when logged in (valid use-case from profile page) + const authBypassRoutes = ['/auth/reset-password', '/auth/verify'] + if ( + (to.path.startsWith('/auth') || to.path === '/') && + isUserLoggedIn.value && + !authBypassRoutes.some((p) => to.path.startsWith(p)) + ) { if (isParentAuthenticated.value) { return next('/parent') } else {