From 31fbc3a1a7d2418d478df81c73cb93b94acc400b Mon Sep 17 00:00:00 2001 From: Jan Willem Mannaerts Date: Sat, 28 Feb 2026 12:15:58 +0100 Subject: [PATCH] Fix direct navigation to legal pages bypassing login redirect The checkAuth useEffect was overwriting the legal page view state with 'login' when unauthenticated users navigated directly to /terms, /privacy, or /support. Co-Authored-By: Claude Opus 4.6 --- frontend/src/App.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index a273b09..56fa66e 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -31,7 +31,7 @@ export default function App() { const [dark, toggleDark] = useDarkMode(); useEffect(() => { - checkAuth(); + if (!view.startsWith('legal-')) checkAuth(); }, []); async function checkAuth() {