feat(routes): render unknown routes inside the app shell as a 404 page #40

Merged
nrupard merged 1 commit from fix/404-shell into main 2026-05-06 17:02:38 +02:00
Owner
  • Add a Router fallback that renders a friendly 404 inside layout.html. Logged-in callers get the normal sidebar, switcher, and chrome plus a "Page not found" message that quotes the requested path and links back to home. Unauthenticated callers are bounced to /login like every other authed route.
  • Previously every unknown route returned plain "Not Found" text with no app shell, which broke the user out of the navigation context (and made browsers render their built-in error chrome).

Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com

- Add a Router fallback that renders a friendly 404 inside `layout.html`. Logged-in callers get the normal sidebar, switcher, and chrome plus a "Page not found" message that quotes the requested path and links back to home. Unauthenticated callers are bounced to /login like every other authed route. - Previously every unknown route returned plain "Not Found" text with no app shell, which broke the user out of the navigation context (and made browsers render their built-in error chrome). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
- Add a Router fallback that renders a friendly 404 inside `layout.html`. Logged-in callers get the normal sidebar, switcher, and chrome plus a "Page not found" message that quotes the requested path and links back to home. Unauthenticated callers are bounced to /login like every other authed route.
- Previously every unknown route returned plain "Not Found" text with no app shell, which broke the user out of the navigation context (and made browsers render their built-in error chrome).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
nrupard deleted branch fix/404-shell 2026-05-06 17:02:39 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
psa-systems/lets-chat!40
No description provided.