Skip to content

Login redirects to /dashboard/ but framework ships no Dashboard page; new hosts 404 on first authenticated load #95

Description

@antosubash

Summary

After a successful login through the bundled users module, Login.tsx redirects to /dashboard/:

// users/pages/Login.tsx:37
new URLSearchParams(window.location.search).get('next') || '/dashboard/'

But neither the users module nor the host scaffold registers a route at /dashboard/, so a freshly scaffolded sm new --preset full app shows 404 the moment a user logs in.


Resolved in commit ade3e24 (PR #98). users.login_redirect_url is now a configurable module setting; Login.tsx reads it from shared props and falls back gracefully when the dashboard module isn't installed.

Activity

  1. antosubash commented on May 1, 2026

    @antosubash
    OwnerAuthor

    Closing — addressed by commit ade3e24 (PR #98). The login page now reads login_redirect_url from UsersSettings/shared props instead of hardcoding /dashboard/, so hosts without the dashboard module no longer 404 after login.


    Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions