Bookings 0.1.4: Booking pages work with Languages turned on
Bookings 0.1.4 fixes the public booking pages on sites with the Languages module turned on. /bookings, /book/:slug and the guest’s manage page returned a 404 under a language prefix.
Links in confirmation emails include the language, but the pages were only registered without it. A guest’s manage link, the only way to cancel without an account, stopped working as soon as a site enabled Languages. The pages now answer at both addresses.
The localized addresses also check the language like every other PhoenixKit public page, so /xx/bookings with an unknown or disabled language is no longer served. A site mounted at the root gets /:locale instead of a double slash, and per-domain language hooks now run on booking pages.
No change beyond updating the dependency.
Full release notes: Bookings 0.1.4
0.1.4 · 20 September 2026
Public booking pages exist under both URL shapes Languages produces, and the localized scope now runs the same locale-validation plug as the rest of PhoenixKit.
Fixed
-
Public booking pages 404’d when Languages was enabled.
Web.Routes.generate/1registered/bookings,/book/:slugand/bookings/manage/:tokenonly under the bare prefix, whilePaths(and therefore confirmation emails) went throughRoutes.path/1, which inserts a locale segment. A guest’s manage link — the only way to cancel without an account — died the moment a host turned Languages on. Both shapes now share onelive_session, matching core’sbuild_live_surface/5. (PR #6) -
Localized booking URLs skipped locale validation. The new
/:localescope keptpipe_through([:browser, :phoenix_kit_auto_setup]), so/xx/bookings200’d and a disabled language code was applied — unlike every other PhoenixKit public page. Both scopes now pipe through:phoenix_kit_locale_validation. Root-mounted hosts (url_prefix: "/") get/:locale, not"//:locale".
Changed
generate/1prepends the host’sextra_live_session_on_mounthooks so per-domain language hooks run on booking pages too.
Bookings 0.1.4. Install or update: {:phoenix_kit_bookings, "~> 0.1"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.