Slash (`/`) in meeting URLs throws a 404
Found a bug? Please fill out the sections below. 👍
Issue Summary
When editing an event type, you can add a URL with a slash (/). For example, I tried to set up cal.com/anand/hiring/20 for a 20-minute introductory call for hiring. However, this throws a 404 error since the slug only matches one level of route param.
We should either add validation to prevent the use of certain special characters like slash, question mark, and hash, which are reserved for URLs. Alternately, we should allow nested URLs (which would be awesome since I can use /hiring/etc!) and update the route matching for it. In Next.js for example, the file name [name].jsx should be replaced with [...name].jsx to support this.
Steps to Reproduce
- Click on an event to edit it
- Add a URL with a slash in it
- Save the event
- Try to open the event
i think nested routes could cause many side effects so we rather not allow it but we could add a duration overwrite hiring/15 overwrites the hiring event-types duration from 20 to 15
That's a good idea! For now, maybe the best is to not allow a slash in the URL?
Hi everyone, can I add the validation to disallow / in the URL
Hi everyone, can I add the validation to disallow
/in the URL
sure go for it! Thank you @Jenietoc