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

[CAL-272] Cannot pre-fill using ?location query param anymore

Open davidknezic opened this issue 2 years ago • 6 comments

Issue Summary

I honestly don't know if this was possible accidentally or if there was proper support for it, but we used to add the ?location= query param to our event links so we could pre-fill individual on-boarding URLs per customer. We just recently upgraded from an old self-hosted cal.com version (from around March this year) to the most recent one. Since then, pre-filling the location doesn't work anymore.

Steps to Reproduce

  1. Append ?location=https://example.com to your event page
  2. Book
  3. Location is either the statically pre-configured one or empty (if no location was pre-configured)

Technical details

From Linear-GitHub Sync

davidknezic avatar Oct 27 '22 10:10 davidknezic

this looks like something we should do

PeerRich avatar Oct 27 '22 19:10 PeerRich

hey @PeerRich , i'd like to take on this issue

G3root avatar Nov 01 '22 04:11 G3root

hey @PeerRich , i'd like to take on this issue

yes sir!

PeerRich avatar Nov 01 '22 12:11 PeerRich

hi @PeerRich can you elaborate more on this. if the location query param exist, does it have to be the default value on the location input field or should post query param rather than location saved on the DB, while form submission ?

G3root avatar Nov 05 '22 06:11 G3root

if there is a location query it should replace it

PeerRich avatar Nov 06 '22 15:11 PeerRich

@G3root has this been addressed?

PeerRich avatar May 17 '23 17:05 PeerRich