Feature: Support redirecting to an external URL on successful booking#2087
Feature: Support redirecting to an external URL on successful booking#2087pumfleet merged 34 commits intocalcom:mainfrom hariombalhara:feat/success-url
Conversation
|
@hariombalhara is attempting to deploy a commit to the cal Team on Vercel. A member of the Team first needs to authorize it. |
|
This pull request is being automatically deployed with Vercel (learn more). docs – ./apps/docs🔍 Inspect: https://vercel.com/cal/docs/GhvV7WnWD3ttjdm5WQo9VRamBNkQ [Deployment for 36dcc82 canceled] calendso – ./apps/web🔍 Inspect: https://vercel.com/cal/calendso/6oLHphrGyXRPVWdwTGgVqicuUtuS |
There was a problem hiding this comment.
It worked great! It only leaves successRedirectUrl with a lot of url query params. Should we clear all of this info from the final url?

@zomars @baileypumfleet
Also can we improve a hint or a label here that says https:// in the url its required? I would change "Redirect on successful booking" to "Redirect on successful booking(https)"

I believe all this info should be kept as is so that whatever info we need to show that success page, owner can also use that to build a very customized success message using that. It also means that we should very well document those query parms
|
|
Wouldn't this new feature allow any bad actor redirect a booking user to any badUrl after booking? Should we at least add some frontend notice that you're getting out of cal.com? |
zomars
left a comment
There was a problem hiding this comment.
I'm blocking this PR for a little bit more so we can address these Qs:
- Can this be used maliciously?
- Wouldn't this reopen a previously fixed vulnerability when you can use Cal to redirect to a malicious site?
- If that's the case how could we handle that?
- And lastly how does the redirect going to work for embedded calendars? (current frames)
|
@agustif Yeah adding that would make sense. In the current flow there is no confirmation being shown by default any way(if redirect Url is set) . So, maybe we can add a small delay in redirection and there we can show the warning (in a way that is still good UX) as well as confirmation. @zomars That should solve the malicious URL problem. In iframe integration also we can redirect within the iframe(this should be the behavioue right now) Or do we have a usecase for top level redirection? |
I agree with your assessment. We also want to show the success page at least for a couple seconds. I recommend doing this: |
|
another problem: when embedding in an iframe, it'll show the new redirect in an iframe. we need to open in a new tab (until we have the script embed) |




What does this PR do?
Fixes #1457 #2088
Type of change
How should this be tested?
Checklist