From 6457e7479b571855c87f2b277bea4510403b7949 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Mon, 10 Nov 2025 19:28:11 +0000 Subject: [PATCH] Fix staff login to preserve redirect destination cgen-88ec16e7083f4d1596f5bf32b797d96d --- client/pages/StaffLogin.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/pages/StaffLogin.tsx b/client/pages/StaffLogin.tsx index f53da307..0ee15831 100644 --- a/client/pages/StaffLogin.tsx +++ b/client/pages/StaffLogin.tsx @@ -95,7 +95,8 @@ export default function StaffLogin() { const handleGoogleSignIn = async () => { setIsLoading(true); try { - await signInWithOAuth("google"); + // Pass the staff dashboard as the intended destination after OAuth completes + await signInWithOAuth("google", "/staff/dashboard"); } catch (error: any) { console.error("Google sign-in error:", error); toastError({