Skip to content

fix(users): smart login redirect fallback when Dashboard not installed (#173) - #183

Merged
antosubash merged 1 commit into
mainfrom
fix/login-redirect-fallback-173
May 25, 2026
Merged

fix(users): smart login redirect fallback when Dashboard not installed (#173)#183
antosubash merged 1 commit into
mainfrom
fix/login-redirect-fallback-173

Conversation

@antosubash

Copy link
Copy Markdown
Owner

Summary

  • Instead of falling back to / (which 404s) when Dashboard module isn't installed, the code now finds the first module with a view_prefix and redirects there
  • Falls back to / only as an absolute last resort when no module has view routes
  • Added two regression tests covering both the happy path and the fallback

Fixes #173

Test plan

  • With Dashboard installed: login redirects to /dashboard/
  • Without Dashboard: login redirects to the first available module's view prefix
  • All 237 users module tests pass

When Dashboard is not installed, the login_redirect_url fallback was
hard-coded to "/" which 404s on apps without a root route (e.g. smpy_gis).
Now picks the first sibling module with a view_prefix instead, only
falling back to "/" as an absolute last resort.
@antosubash
antosubash merged commit 8bc2329 into main May 25, 2026
11 of 12 checks passed
antosubash added a commit that referenced this pull request Jun 3, 2026
…190)

PR #183 changed the post-login redirect to fall back to the first sibling
module's view route (instead of hard-coding "/", which 404s on apps
without a root route) when the Dashboard module isn't installed. The docs
still described the old "/" fallback. Update the users settings table and
the dashboard "Replacing it" section, and record the change in the
CHANGELOG Unreleased/Fixed section.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Login success redirects to / (404) instead of /dashboard

1 participant