File tree Expand file tree Collapse file tree
src/libs/Navigation/helpers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -59,10 +59,9 @@ function getMatchingFullScreenRoute(route: NavigationPartialRoute) {
5959 const isDynamicScreen = isDynamicRouteScreen ( route . name as Screen ) ;
6060
6161 // Check for backTo param. One screen with different backTo value may need different screens visible under the overlay.
62- // Before checking backTo, we verify the URL doesn't end with a dynamic route suffix.
63- // Dynamic routes never carry their own backTo - they only inherit it from the screen underneath.
64- // So when a dynamic suffix is present, we must strip it first to resolve the correct full-screen
65- // route from the base path, rather than letting backTo (which belongs to the underlying screen) dictate it.
62+ // Dynamic screens are skipped here because they never carry their own backTo - they only
63+ // inherit it from the screen underneath. Letting backTo dictate the full-screen route for
64+ // a dynamic screen would resolve the wrong page.
6665 if ( isRouteWithBackToParam ( route ) && ! isDynamicScreen ) {
6766 const stateForBackTo = getStateFromPath ( route . params . backTo as RoutePath ) ;
6867
You can’t perform that action at this time.
0 commit comments