Repository navigation
Optional redirect URL after booking (and lock the calendar on the confirmation screen) #268
Replies: 1 comment
|
Both halves are right, and the second one is a bug rather than a feature. A page that re-enables its own submit button and leaves the calendar clickable after a confirmed booking is inviting a double booking with a different email, which Accepted: a per-event-type Three things that will need care. The redirect is an open-redirect surface, even though it is admin-configured. Validate on save and again before navigating, and reject anything that is not an absolute https URL with no credentials in it. Cheap to do, and it stops the value becoming a phishing link the day someone's admin account is reused. The embed widget is the awkward one. It runs inside a shadow DOM on a third party's page, so a top-level navigation takes the customer's whole site away, which they will not thank you for. In the widget I would show the final state and, if a redirect is configured, offer a "Continue" that opens it in a new tab. The Three surfaces, not one. PR welcome. Worth a test that a second submit after confirmation is refused, since that is the actual harm. |
Uh oh!
There was an error while loading. Please reload this page.
After a successful booking,
book.htmlswitches the right pane to#confirm-view, but the calendar on the left stays interactive and the submit button is re-enabled, so the page reads as "book another one".max_active_bookingsstops a second booking with the same email, but not with a different one, and there is no way to send the attendee somewhere next (a thank-you page, which is also where site analytics usually count the conversion).Proposal:
redirect_url(https only, same validation as other URLs; optionally with?booking_id=appended) that the page navigates to after the confirmation is shown, with a short delay or a "Continue" button;Happy to send a PR with tests if you agree on the shape.
All reactions