fix(frontend): 404 navigation issues#5025
Conversation
|
🚅 Deployed to the rivet-pr-5025 environment in rivet-frontend
|
Code ReviewOverviewThis PR fixes two related 404/navigation crash scenarios in the frontend:
The root cause (TanStack Router leaving descendant matches stuck in Issues and Suggestions1. Org error redirect is too broad (potential regression)In if (org.error) {
throw redirect({ to: "/" });
}A network failure, a 500 from the auth backend, or a rate-limit response would all silently drop the user to the root with no feedback. The original 2. Inline type cast in namespace route should use or extend the existing helperThe 3.
|
f2d1963 to
ded0afc
Compare
21070c2 to
9a22de6
Compare
ded0afc to
aa332cf
Compare
9a22de6 to
1b3211e
Compare
1b3211e to
e7bf9f7
Compare

Description
Please include a summary of the changes and the related issue. Please also include relevant motivation and context.
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
Checklist: