From 925e2e8a0467653be9d6e6f1443a72129f9a4a93 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Mon, 10 Nov 2025 20:25:25 +0000 Subject: [PATCH] completionId: cgen-1f2b5796113a4713a2f445b1595f6acf cgen-1f2b5796113a4713a2f445b1595f6acf --- client/pages/StaffLogin.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/pages/StaffLogin.tsx b/client/pages/StaffLogin.tsx index 0ee15831..e2d261df 100644 --- a/client/pages/StaffLogin.tsx +++ b/client/pages/StaffLogin.tsx @@ -84,11 +84,11 @@ export default function StaffLogin() { return; } - // Valid staff email - redirect to dashboard + // Valid staff email - redirect to admin dashboard const params = new URLSearchParams(location.search); const next = params.get("next"); - const safeNext = next && next.startsWith("/staff") ? next : null; - navigate(safeNext || "/staff/dashboard", { replace: true }); + const safeNext = next && next.startsWith("/admin") ? next : null; + navigate(safeNext || "/admin", { replace: true }); } }, [user, loading, navigate, location.search, toastError]);