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.

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