Hey, why is it that sometimes cal redirects to an ...
# general
u
Hey, why is it that sometimes cal redirects to an undefined route?
p
do you have a recording?
u
yes
Also I noticed that when I signup, it redirects me to the login with this url: https://cal-staging.joinowners.com/auth/login?callbackUrl=https%3A%2F%2Fcal-staging.joinowners.com%2Fundefined
if (existingUser) {
return {
redirect: {
permanent: false,
`destination: "/auth/login?callbackUrl=" +
${WEBAPP_URL}/${ctx.query.callbackUrl}
,
Copy code
},
Copy code
};`
}
That piece of code is what setting the callbackurl in undefined, more precise is the ctx.query.callbackurl
h
@Udit Takkar I think you faced a similar issue. Did you find what was wrong.
u
checking
u
Awesome, please help me
It is on the redirect callback
u
@Ulises Menem you can still login just go to /auth/login and enter your credentials with no query params. Btw here is the PR that will fix this bug and it's under review https://github.com/calcom/cal.com/pull/5372.
u
Thank you, but the expected behavior for our users is that they are not going to erase those query params. Excelente the PR.