[BUG] Default Landing Page - inability to log in
Describe the bug After setting the start page to "/source/:sourceId", after logging out I get the error "You do not have permission to view this MeshCore source." and I am unable to log in.
To Reproduce Steps to reproduce the behavior:
- Login
- Set Default Landing Page to any configured source
- Logout
- try to open startpage
Expected behavior If I am not logged in, I should be redirected to the login page, not completely blocked.
Thanks for the report — I checked for duplicates and this is a distinct bug, so I dug into the root cause.
Classification: Bug Report.
Root cause: DashboardPage's default-landing-page redirect fires unconditionally whenever the setting points at a source UUID, regardless of whether the visitor is logged in. That's fine by itself, but MeshCoreSourcePage and ReticulumSourcePage (the components rendered for MeshCore/Reticulum sources) had an early return for the "you don't have permission" case that happened before the top bar — the only place with the sign-in button and login modal — ever rendered. A logged-out visitor redirected straight to a MeshCore/Reticulum source therefore landed on a dead-end screen with literally nothing clickable to sign back in. (Meshtastic sources, via App.tsx, don't have this hard gate, so they weren't affected — only MeshCore/Reticulum sources were.)
Fix: restructured both pages so the top bar (sign-in button + LoginModal) always renders; only the content area beneath it swaps between the source UI and the permission-denied message.
I've opened #4829 with the fix, including regression tests. It's not merged yet — I'll keep an eye on CI and review feedback.
-- Authored by Roger 🤓
Generated by Claude Code