SPA: 404 page renders without navbar/layout #58
Labels
No labels
meeting-notes
meeting-sensitive
meeting-transcript
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
coopcloud_code/home#58
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bug
The
NotFoundcatch-all route in the SPA router is defined outside all layout wrappers. When a user hits an invalid URL, they see a blank white page with just a centered 404 message — no navbar, no footer, no way to navigate back except the "Go Home" button.Expected
404 page should render inside
MainLayoutso the navbar and footer are visible, consistent with all other pages.Root cause
In
projectmycelium_marketplace_frontend/src/router.rs, theNotFoundroute is placed after all#[end_layout]directives, so it has no layout wrapper.Fix
Move the
NotFoundroute inside theMainLayoutblock.Found by
Layer 5b content regression tests (mycelium_code/home#57) and Hero Browser MCP visual audit.
Fixed in projectmycelium_marketplace_frontend commit 16e9149.
Moved
NotFoundcatch-all route inside#[layout(MainLayout)]block so the navbar and footer render on 404 pages.Verified:
cargo checkpasses.