Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Update email-sign-in.tsx

Kiran K09aa1a34e96e
diff --git a/apps/web/ui/auth/login/email-sign-in.tsx b/apps/web/ui/auth/login/email-sign-in.tsx
index dd39119df7..c3c6740f98 100644
--- a/apps/web/ui/auth/login/email-sign-in.tsx
+++ b/apps/web/ui/auth/login/email-sign-in.tsx
@@ -89,7 +89,7 @@ export const EmailSignIn = () => {
const response = await signIn(provider, {
email,
redirect: false,
- callbackUrl: next || "/",
+ callbackUrl: next || "/workspaces",
...(password && { password }),
});
@@ -118,7 +118,7 @@ export const EmailSignIn = () => {
}
if (provider === "credentials") {
- router.push(response?.url || "/");
+ router.push(response?.url || "/workspaces");
}
});
}}