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 K94bd5f768924
diff --git a/apps/web/ui/auth/login/email-sign-in.tsx b/apps/web/ui/auth/login/email-sign-in.tsx
index d1214fbe2f..dd39119df7 100644
--- a/apps/web/ui/auth/login/email-sign-in.tsx
+++ b/apps/web/ui/auth/login/email-sign-in.tsx
@@ -118,10 +118,7 @@ export const EmailSignIn = () => {
}
if (provider === "credentials") {
- const isRelative = next?.startsWith("/");
- next = `${window.location.origin}${isRelative ? next : "/"}`;
-
- router.push(next);
+ router.push(response?.url || "/");
}
});
}}