From 1521c2f221b49d78dabf8489bd693415e7caefc9 Mon Sep 17 00:00:00 2001 From: Lars Date: Sat, 21 Mar 2026 12:09:37 +0100 Subject: [PATCH] fix: redirect to dashboard after successful login LoginScreen was not navigating after login, leaving users on empty page. Now explicitly redirects to '/' (dashboard) after successful login. This fixes the "empty page after first login" issue. Co-Authored-By: Claude Opus 4.6 --- frontend/src/pages/LoginScreen.jsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/src/pages/LoginScreen.jsx b/frontend/src/pages/LoginScreen.jsx index 446968a..b05553f 100644 --- a/frontend/src/pages/LoginScreen.jsx +++ b/frontend/src/pages/LoginScreen.jsx @@ -33,6 +33,8 @@ export default function LoginScreen() { setLoading(true); setError(null) try { await login({ email: email.trim().toLowerCase(), password: password }) + // Redirect to dashboard after successful login + window.location.href = '/' } catch(e) { setError(e.message || 'Ungültige E-Mail oder Passwort') } finally { setLoading(false) }