Skip to content

Publishing 0.1.11: The prefixless default language is now a site-wide setting

Publishing 0.1.11 moves the Default Language Without Prefix setting out of the module. It decides whether primary-language URLs have a language prefix, such as /blog/post instead of /en/blog/post, and is now owned by core’s Languages settings.

On the Publishing settings page the switch becomes a read-only row that shows whether it is on, with a Manage link to the Languages page. Public URLs and redirects behave as before. Core copies the old Publishing value into the new setting at boot, so existing sites keep their choice without doing anything.

Upgrading

Update PhoenixKit to 1.7.115 or later together with this release: that is the core version that owns the setting and copies the old value. The package’s declared requirement stays ~> 1.7, so it does not enforce this.

Full release notes: Publishing 0.1.11

0.1.11 · 19 May 2026

PR #18 — delegate the default_language_no_prefix toggle to the site-wide core setting (paired with phoenix_kit 1.7.115).

Changed

  • LanguageHelpers.default_language_no_prefix?/0 now delegates to PhoenixKit.Modules.Languages.default_language_no_prefix?/0 instead of reading the legacy publishing_default_language_no_prefix setting key directly. All consumers (the six Web.HTML URL builders, the canonical-redirect controller, and the Publishing.default_language_no_prefix?/0 / use_language_prefix?/1 facade) keep the same signature and behavior.
  • /admin/settings/publishing — the “Default Language Without Prefix” toggle is replaced with a read-only status row and a “Manage” link to /admin/settings/languages, which now owns the setting. Removes the dual-write risk where the publishing-side write could desync from the core-side read mid-deploy.
  • Bumped phoenix_kit to 1.7.115, which ships Modules.Languages.default_language_no_prefix?/0 and the Languages.migrate_legacy/0 backfill (run by ModuleRegistry at boot) that copies the legacy publishing_default_language_no_prefix value into the new core key, so existing sites keep their explicit choice without admin action.

Removed

  • @default_language_no_prefix_key constant and the toggle_default_language_no_prefix LiveView event on Web.Settings — the setting is no longer publishing-owned.

Publishing 0.1.11. Install or update: {:phoenix_kit_publishing, "~> 0.1"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.