Scheduling infrastructure for absolutely everyone.
fix: callback url (#5372)
Udit Takkaracad0619f5b6
diff --git a/apps/web/pages/signup.tsx b/apps/web/pages/signup.tsxindex 57cd44ac066..9567fdd13ff 100644--- a/apps/web/pages/signup.tsx+++ b/apps/web/pages/signup.tsx@@ -54,12 +54,11 @@ export default function Signup({ prepopulateFormValues }: inferSSRProps<typeof gmethod: "POST",}).then(handleErrors)- .then(- async () =>- await signIn("Cal.com", {- callbackUrl: (`${WEBAPP_URL}/${router.query.callbackUrl}` || "") as string,- })- )+ .then(async () => {+ await signIn("Cal.com", {+ callbackUrl: router.query.callbackUrl ? `${WEBAPP_URL}/${router.query.callbackUrl}` : WEBAPP_URL,+ });+ }).catch((err) => {methods.setError("apiError", { message: err.message });});@@ -143,7 +142,7 @@ export const getServerSideProps = async (ctx: GetServerSidePropsContext) => {// no token given, treat as a normal signup without verification tokenif (!token) {return {- props,+ props: JSON.parse(JSON.stringify(props)),};}