Skip to content

PhoenixKit 1.7.31: Publishing lists show the live version, and URL slugs stop clashing

PhoenixKit 1.7.31 changes two things in the Publishing module: post lists show the live version, and custom URL slugs no longer collide with other posts.

The post list now shows the translations and statuses of the live version instead of the newest one, with a badge saying which version is shown next to the version count. The language buttons open the files of that version, and the public link always uses the post’s primary language.

A post’s directory name now wins over another post’s custom URL slug. When you save a custom slug that matches another post’s directory, it is cleared in every translation, and a notice tells you so. Creating a new post also clears custom slugs that match its name.

The rest of the release splits the Publishing code into smaller modules, without other changes.

Full release notes: PhoenixKit 1.7.31

1.7.31 · 29 January 2026

  • Refactor publishing module into submodules and improve URL slug handling
    • Storage module refactoring:
      • Split storage.ex into specialized submodules: Paths, Languages, Slugs, Versions, Deletion, and Helpers for better organization and maintainability
      • Move controller logic into submodules: Fallback, Language, Listing, PostFetching, PostRendering, Routing, SlugResolution, Translations
      • Move editor logic into submodules: Collaborative, Forms, Helpers, Persistence, Preview, Translation, Versions
    • Listing page improvements:
      • Show live version’s translations and statuses instead of latest version
      • Fetch languages from filesystem when version_languages cache is empty
      • Fix paths to point to live version files when clicking language buttons
      • Add “showing vN” badge that combines with version count display
      • Fix public URL to always use post’s primary language
    • URL slug priority system:
      • Directory slugs now have priority over custom url_slugs
      • Prevent setting url_slug that conflicts with another post’s directory name
      • Auto-clear conflicting url_slugs instead of blocking saves
      • Show info notice when url_slugs are auto-cleared due to conflicts
      • Clear conflicting url_slugs from ALL translations, not just current one
      • Clear conflicting custom url_slugs when new post is created

PhoenixKit 1.7.31. Install or update: {:phoenix_kit, "~> 1.7"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.