cal.com icon indicating copy to clipboard operation
cal.com copied to clipboard

[CAL-3054] redirects in /signup.tsx component with parameters

Open PeerRich opened this issue 1 year ago • 4 comments

it would be nice if

https://app.cal.com/signup?redirect=https://app.cal.com/settings/teams/new

redirects to:

https://app.cal.com/settings/teams/new

after the entire onboarding is done

that way we can change the signup button on the https://cal.com/pricing page:

CleanShot 2024-01-30 at 11 25 04@2x

to route correctly to the team creation flow

important: make sure the redirect only works within app.cal.com, to prevent abusing the redirect feature for harmful external links.

From SyncLinear.com | CAL-3054

PeerRich avatar Jan 30 '24 11:01 PeerRich

Hi, can you share some more details regarding the flow.

omair-muhammad avatar Jan 30 '24 13:01 omair-muhammad

essentially, if /signup has the parameter ?redirect=https://app.cal.com/settings/teams/new it'll redirect to app.cal.com/settings/teams/new after signing up, finishing the /getting-started onboarding

PeerRich avatar Jan 30 '24 15:01 PeerRich

Hi, can you share some more details??

sidhhantPr avatar Jan 31 '24 04:01 sidhhantPr

@PeerRich Right now, where is it redirecting?

omair-muhammad avatar Jan 31 '24 05:01 omair-muhammad