Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/libs/Navigation/helpers/getAdaptedStateFromPath.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ function getSearchScreenNameForRoute(route: NavigationPartialRoute): string {
function getMatchingFullScreenRoute(route: NavigationPartialRoute) {
// Check for backTo param. One screen with different backTo value may need different screens visible under the overlay.
if (isRouteWithBackToParam(route)) {
const stateForBackTo = getStateFromPath(route.params.backTo as RoutePath);
const normalizedBackTo = normalizePath(route.params.backTo);
const stateForBackTo = getStateFromPath(normalizedBackTo as RoutePath);

// This may happen if the backTo url is invalid.
const lastRoute = stateForBackTo?.routes.at(-1);
Expand Down
Loading