Skip to content

docs(users,dashboard): describe smart login-redirect fallback (#173) - #190

Merged
antosubash merged 1 commit into
mainfrom
worktree-docs-login-redirect-fallback
Jun 3, 2026
Merged

docs(users,dashboard): describe smart login-redirect fallback (#173)#190
antosubash merged 1 commit into
mainfrom
worktree-docs-login-redirect-fallback

Conversation

@antosubash

Copy link
Copy Markdown
Owner

Summary

The post-login redirect behavior changed in #183 (merged), but the docs still describe the old behavior. This PR brings the docs in line with the shipped code.

What the code actually does now (modules/users/users/module.py): when login_redirect_url is left at its default /dashboard/ and the Dashboard module isn't installed, the users module redirects to the first sibling module that exposes view routes (its view_prefix), only falling back to / as an absolute last resort. Hard-coding / previously 404'd on apps without a root route (e.g. smpy_gis, --preset minimal). Operator-set overrides are always preserved.

Changes

  • docs/modules/users.md — settings table entry for login_redirect_url now describes the sibling-view fallback instead of the old / fallback.
  • docs/modules/dashboard.md — "Replacing it" section now explains the auto-detect/fallback accurately.
  • CHANGELOG.md — added an [Unreleased] → Fixed entry for the redirect change (Login success redirects to / (404) instead of /dashboard #173), which was not previously recorded.

Notes

Docs-only change; no code touched. The original fix (PR #183) is already merged — this is the follow-up documentation that wasn't included at the time.

Refs #173, #183

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.
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying simple-module-python with  Cloudflare Pages  Cloudflare Pages

Latest commit: 9a9d0ac
Status: ✅  Deploy successful!
Preview URL: https://1ab7c2c1.simple-module-python.pages.dev
Branch Preview URL: https://worktree-docs-login-redirect.simple-module-python.pages.dev

View logs

@antosubash
antosubash merged commit 2b079c9 into main Jun 3, 2026
12 checks passed
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.

1 participant