From 3ba86460913eb232f7a7efb8cdd9be689dceb77b Mon Sep 17 00:00:00 2001 From: Yisroel Baum Date: Mon, 3 Aug 2026 19:42:58 +0300 Subject: [PATCH 1/2] test guest-only home route --- frontend/website/cypress/e2e/session-auth.cy.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/frontend/website/cypress/e2e/session-auth.cy.ts b/frontend/website/cypress/e2e/session-auth.cy.ts index caa7956..cd35dfd 100644 --- a/frontend/website/cypress/e2e/session-auth.cy.ts +++ b/frontend/website/cypress/e2e/session-auth.cy.ts @@ -76,6 +76,18 @@ describe('session authentication', () => { cy.location('pathname').should('equal', '/dashboard') }) + it('redirects a restored session away from the home route', () => { + cy.intercept('GET', '**/api/me', { + statusCode: 200, + body: { user: authenticatedUser }, + }).as('me') + + cy.visit('/') + cy.wait('@me') + + cy.location('pathname').should('equal', '/dashboard') + }) + it('rejects a malformed authenticated-user response', () => { cy.intercept('GET', '**/api/me', { statusCode: 200, From dc02728af9f3105c22052fb5018044cf83b59a8e Mon Sep 17 00:00:00 2001 From: Yisroel Baum Date: Mon, 3 Aug 2026 19:43:45 +0300 Subject: [PATCH 2/2] make home route guest-only --- frontend/website/src/router/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/website/src/router/index.ts b/frontend/website/src/router/index.ts index 51e7184..66d053a 100644 --- a/frontend/website/src/router/index.ts +++ b/frontend/website/src/router/index.ts @@ -9,6 +9,9 @@ const router = createRouter({ path: '/', name: 'home', component: () => import('@/views/HomeView.vue'), + meta: { + guestOnly: true, + }, }, { path: '/login',