From b73bfaf5908fb9f3bbd2fa4d27fbbb50accec98d Mon Sep 17 00:00:00 2001 From: Eric Gullickson <16152721+ericgullickson@users.noreply.github.com> Date: Sun, 15 Feb 2026 17:51:47 -0600 Subject: [PATCH] fix: handle trailing slash on /guide/ route (refs #203) Co-Authored-By: Claude Opus 4.6 --- frontend/src/App.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index ac28906..497c2ba 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -371,7 +371,7 @@ function App() { // Skip on auth routes -- their query params must survive until Auth0 SDK processes them useEffect(() => { const path = window.location.pathname; - if (path === '/callback' || path === '/signup' || path === '/verify-email' || path === '/guide') return; + if (path === '/callback' || path === '/signup' || path === '/verify-email' || path === '/guide' || path === '/guide/') return; const screen = routeToScreen[path]; if (screen && screen !== activeScreen) { navigateToScreen(screen, { source: 'url-sync' }); @@ -383,7 +383,7 @@ function App() { // Auth0 SDK needs for handleRedirectCallback (child effects fire before parent effects) useEffect(() => { const path = window.location.pathname; - if (path === '/callback' || path === '/signup' || path === '/verify-email' || path === '/guide') return; + if (path === '/callback' || path === '/signup' || path === '/verify-email' || path === '/guide' || path === '/guide/') return; const targetPath = screenToRoute[activeScreen]; if (targetPath && path !== targetPath) { window.history.replaceState(null, '', targetPath); @@ -502,7 +502,7 @@ function App() { const isSignupRoute = location.pathname === '/signup'; const isVerifyEmailRoute = location.pathname === '/verify-email'; const isOnboardingRoute = location.pathname === '/onboarding'; - const isGuideRoute = location.pathname === '/guide'; + const isGuideRoute = location.pathname === '/guide' || location.pathname === '/guide/'; const isAuthRoute = isSignupRoute || isVerifyEmailRoute || isOnboardingRoute; const shouldShowHomePage = !isGarageRoute && !isCallbackRoute && !isAuthRoute && !isGuideRoute;