From 8f3d6e5569cb8da6203935e94a62599d067f5507 Mon Sep 17 00:00:00 2001 From: DanielS Date: Tue, 18 Aug 2026 16:26:35 +0200 Subject: [PATCH] fix(auth): redirect to home instead of admin panel after login --- shop/components/login-form.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/shop/components/login-form.tsx b/shop/components/login-form.tsx index 599c428..d965bfc 100644 --- a/shop/components/login-form.tsx +++ b/shop/components/login-form.tsx @@ -64,10 +64,8 @@ export function LoginForm({ const nextParam = typeof window !== 'undefined' ? new URLSearchParams(window.location.search).get('next') : null; if (nextParam) { router.push(nextParam); - } else if (role === "admin") { - router.push("/admin/einstellungen"); } else { - router.push("/my-customers"); + router.push("/"); } }, [router]);