Redirect signups to the homepage (#196)
This commit is contained in:
parent
46631e68e9
commit
0ce787889a
@ -76,7 +76,9 @@ function SignUpPage() {
|
||||
password: value.password,
|
||||
callbackURL: (() => {
|
||||
const url = new URL("/verify-email", window.location.origin);
|
||||
url.searchParams.set("redirect", "/subscribe");
|
||||
if (redirectTo !== "/") {
|
||||
url.searchParams.set("redirect", redirectTo);
|
||||
}
|
||||
return url.toString();
|
||||
})(),
|
||||
});
|
||||
@ -110,7 +112,7 @@ function SignUpPage() {
|
||||
});
|
||||
|
||||
async function handleContinueWithGoogle() {
|
||||
const callbackURL = redirectTo === "/" ? "/subscribe" : redirectTo;
|
||||
const callbackURL = redirectTo;
|
||||
setSocialError(null);
|
||||
setIsStartingGoogle(true);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user