Skip to content

PhoenixKit 2.22.17: Choose your start page after sign-in

PhoenixKit 2.22.17 lets each user choose where they land after signing in, and lets a dashboards module replace the admin home page.

Profile settings have a new Start page section, “Where to go after you sign in.” It lists The admin home and the user’s own visible top-level admin sections. The choice applies to every sign-in: password, magic link and social sign-in. A page the user was sent back to after signing in still comes first, and the site’s default applies only when no start page is set.

When a dashboards module is installed and enabled, and a dashboard is set as the home dashboard, /admin shows that dashboard instead of the built-in overview. It updates live when the dashboard is set or unset. Sites without such a module see no change.

Full release notes: PhoenixKit 2.22.17

2.22.17 · 11 September 2026

Added

  • An installed dashboards module can own the /admin landing page. When one is present, enabled, and a dashboard is bound to the home place, it renders there instead of the built-in overview — live, so binding or unbinding one updates the page without a reload. Nothing changes on an install without that module.
  • Users can pick where they land after signing in. A new “Start page” picker in profile settings lists the visitor’s own visible, top-level admin tabs; the choice is honored on every login/magic-link/OAuth sign-in, after an explicit return-to destination and before the site’s configured default.

Fixed

  • update_user_start_page/2 now delegates its local-path check to Routes.local_path?/1 instead of a private re-implementation that missed the ASCII control-character case documented as load-bearing elsewhere in the codebase. The stored preference was already re-validated by the real guard at redirect time, so this was not a live open redirect, but it closes a second, drifting copy of a security-critical check (PR #800 review).

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