Skip to content

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/1 registered /bookings, /book/:slug and /bookings/manage/:token only under the bare prefix, while Paths (and therefore confirmation emails) went through Routes.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 one live_session, matching core’s build_live_surface/5. (PR #6)

  • Localized booking URLs skipped locale validation. The new /:locale scope kept pipe_through([:browser, :phoenix_kit_auto_setup]), so /xx/bookings 200’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/1 prepends the host’s extra_live_session_on_mount hooks 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.