Update URL Structure:
Landing Page:
| Path |
Description |
| / |
Landing / Home page |
Account App (same domain):
| Path |
Description |
| /account |
Dashboard home (redirect here after login) |
| /account/[feature] |
Other app sections |
Auth Flow Pages:
| Path |
Description |
| /login |
Login page |
| /signup |
Signup page |
| /logout |
Logout handler (not a real page — just clear session and redirect) |
| /forgot-password |
Password reset request |
| /reset-password/:token |
Password reset form (via token link) |
"Login" and "Signup" buttons on the landing page header:
- When user is not logged in, they link to /login and /signup
- When user is logged in, replace "Login" and "Signup" buttons with "Dashboard" (/account) and "Logout" (/logout)
After Login / Signup:
- Redirect to /account
- If user arrived at /login via protected route, redirect back using a query param, e.g. /login?redirect=/account/settings
After Logout:
- Redirect to / (Landing / Home page)
Update URL Structure:
Landing Page:
Account App (same domain):
Auth Flow Pages:
"Login" and "Signup" buttons on the landing page header:
After Login / Signup:
After Logout: