Back links are inconsistent and often don't return to the previous screen #308
Labels
No labels
area:auth
area:ci
area:db
area:infra
area:native
area:pwa
area:service
epic
feature
foundation
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
james/carol#308
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?
The "back" affordances across the universal client (
apps/client) are inconsistent: some go back in history, others navigate to a hardcoded parent route, so in many cases "back" does not return to the screen you came from.Goal
Audit every back affordance (back buttons/links,
ChevronLeft/ArrowLefticons, header back,router.back()/router.replace()/<Link>-to-parent,navigation.goBack()) and make them behave consistently: go back to the actual previous location when there is history, with a sensible fallback (e.g. a parent route) when there isn't — for cases where a screen was reached via deep link or cold start and there's nothing to pop.Acceptance
goBackOr(fallback)that usesrouter.canGoBack() ? router.back() : router.replace(fallback)).