diff --git a/src/view/com/util/Link.tsx b/src/view/com/util/Link.tsx index 4008a6fc3f..6a931d9a40 100644 --- a/src/view/com/util/Link.tsx +++ b/src/view/com/util/Link.tsx @@ -11,6 +11,7 @@ import { type ViewStyle, } from 'react-native' import {sanitizeUrl} from '@braintree/sanitize-url' +import {StackActions} from '@react-navigation/native' import { type DebouncedNavigationProp, diff --git a/src/view/shell/desktop/LeftNav.tsx b/src/view/shell/desktop/LeftNav.tsx index ee2b1778b1..aa18f9b708 100644 --- a/src/view/shell/desktop/LeftNav.tsx +++ b/src/view/shell/desktop/LeftNav.tsx @@ -350,7 +350,7 @@ function NavItem({count, hasNew, href, icon, iconFilled, label}: NavItemProps) { } else { const [screen, params] = router.matchPath(href) // @ts-expect-error TODO: type matchPath well enough that it can be plugged into navigation.navigate directly - navigation.popTo(screen, params) + navigation.navigate(screen, params, {pop: true}) } }, [navigation, href, isCurrent],