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