Fixes callbackUrl

pull/9078/head
zomars 2022-08-05 15:08:36 -06:00
parent a8e8acd053
commit fc87557902
1 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ import Button from "@calcom/ui/Button";
import { EmailField, PasswordField, TextField } from "@calcom/ui/form/fields";
import { HeadSeo } from "@calcom/web/components/seo/head-seo";
import { asStringOrNull } from "@calcom/web/lib/asStringOrNull";
import { WEBSITE_URL, WEBAPP_URL } from "@calcom/web/lib/config/constants";
import { WEBAPP_URL } from "@calcom/web/lib/config/constants";
import prisma from "@calcom/web/lib/prisma";
import { isSAMLLoginEnabled } from "@calcom/web/lib/saml";
import { IS_GOOGLE_LOGIN_ENABLED } from "@calcom/web/server/lib/constants";
@ -53,7 +53,7 @@ export default function Signup() {
.then(
async () =>
await signIn("Cal.com", {
callbackUrl: (`${WEBSITE_URL}/${router.query.callbackUrl}` || "") as string,
callbackUrl: (`${WEBAPP_URL}/${router.query.callbackUrl}` || "") as string,
})
)
.catch((err) => {