Publishing 0.4.4: README explains public routing and reserved prefixes
Publishing 0.4.4 has no code change and nothing to do for a running site. It adds two README sections so they reach HexDocs.
How Dispatch Works explains that Publishing serves public pages by rewriting the request path before the host router matches it. Two things follow. A host route whose first segment equals a group slug never matches, whatever its order in router.ex; only GET and HEAD requests are rewritten. And mix phx.routes lists these pages under an internal prefix, not their public paths.
Reserved Route Prefixes explains how other modules reserve a first path segment so Publishing leaves it alone, even when a group has the same slug. It warns that reserving a prefix without serving pages for it gives a 404.
Full release notes: Publishing 0.4.4
0.4.4 · 25 July 2026
Documentation-only release. No code changes — published so the new README sections reach HexDocs.
Added
- README: “How Dispatch Works” — documents that public routes are served by
overriding the host router’s
call/2and rewritingpath_infoto an internal prefix, with the two consequences that surprise people: a host route whose first segment equals a group slug will never match (the rewrite precedes route matching, so declaration order inrouter.exdoesn’t help; onlyGET/HEADare rewritten), andmix phx.routeslists these under__phoenix_kit_publishing_dispatchrather than their public paths. - README: “Reserved Route Prefixes” — documents
PhoenixKit.Module.reserved_route_prefixes/0(phoenix_kit>= 1.7.170), howRouterDispatch.known_group?/1honours it even when a same-named group exists in publishing’s own data, and the behaviour on olderphoenix_kit. Includes a warning that reserving a prefix without shipping a renderer yields a 404, citing thephoenix_kit_legal0.1.6 incident where reserving"legal"404’d public legal pages on every host app until it was reverted in 0.1.7.
Both mechanisms previously existed only in source comments and moduledocs, which is why that regression was diagnosed from a user bug report rather than from docs.
Publishing 0.4.4. Install or update: {:phoenix_kit_publishing, "~> 0.4"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.