rsnext/test/e2e/app-dir/parallel-routes-and-interception/app/intercepting-siblings
Jimmy Lai 536d2dbc44
interception routes: fix interception for dynamic routes (#58198)
This PR fixes the bug in which interception routes of the form `(.)[param]` would not intercept navigations.

The bug happened because we would not create a dynamic route matcher for the intercepted route, so we would never match the correct dynamic route when hitting the server, falling back to the base one. 

The fix consists of fixing the logic that checks for a dynamic route so that it checks the correct path when handling an interception route.

There's probably a better fix here, advice welcome

fixes #52533
2023-11-08 18:57:57 +00:00
..
@modal interception routes: fix interception for dynamic routes (#58198) 2023-11-08 18:57:57 +00:00
[id] interception routes: fix interception for dynamic routes (#58198) 2023-11-08 18:57:57 +00:00
layout.js interception routes: fix interception for dynamic routes (#58198) 2023-11-08 18:57:57 +00:00
page.js interception routes: fix interception for dynamic routes (#58198) 2023-11-08 18:57:57 +00:00