PhoenixKit 2.60.3: Optional permanent redirect from the default-language URL
PhoenixKit 2.60.3 lets a site send a permanent redirect from its default-language URLs to the prefixless ones, which search engines treat as the canonical move.
With default_language_no_prefix on, /<default>/... redirects to the address without the language with a 302. A site can now opt in to a permanent one:
config :phoenix_kit, :default_locale_redirect, status: 301, max_age: 86_400
GET and HEAD then get the 301 (or 308), marked private so only the browser stores it, and only for max_age seconds, one day by default. Other methods, sites without the option and a misconfigured option keep the 302.
The release also recognises JPEG photos with an HDR gain map on upload and shows an HDR badge for them in the media details.
Full release notes: PhoenixKit 2.60.3
2.60.3 · 10 October 2026
No migration. Ships PR #923 (opt-in permanent default-locale redirect); the review found nothing to fix.
Added
config :phoenix_kit, :default_locale_redirect, status: 301, max_age: 86_400makes the/<default>/...to prefixless redirect permanent for GET and HEAD (301/308, or:moved_permanently/:permanent_redirect), sent withcache-control: private, max-age=<max_age>so only the browser stores it and forgets it aftermax_age(one day when missing or invalid). Other methods, hosts without the option and a misconfigured option keep the 302; a misconfiguration is logged once per node.
Fixed
mix precommitwas red on main: dialyzer flaggedStorage.Hdr.mp_images/2(from the HDR gain-map detection commit) becauseint/4always returns an integer, so itsis_integerguards could never fail. The dead checks are gone; behaviour is unchanged.
PhoenixKit 2.60.3. Install or update: {:phoenix_kit, "~> 2.60"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.