rsnext/test/e2e/app-dir/interception-middleware-rewrite/app
Zack Tanner d605ef6101
fix interception routes with rewrites (#59094)
### What?
When using interception routes & rewrites, on first interception the
router will properly handle the request. But when using the back button
and attempting another interception, it won't work

### Why?
Intercepting routes rely on the accuracy of `nextUrl` -- but when
`ACTION_RESTORE` is dispatched (in the `popstate` event), `nextUrl` is
restored from `url.pathname` rather than the flight router state.

### How?
This uses the `extractPathFromFlightRouterState` util which will
properly handle setting `nextUrl`. This util is also used when creating
the initial router state.

Closes NEXT-1747
Fixes #56072
2023-11-30 08:57:42 +01:00
..
[lang] fix interception routes with rewrites (#59094) 2023-11-30 08:57:42 +01:00
layout.tsx interception routes: support middleware rewrites (#48450) 2023-04-17 10:07:31 +02:00
page.tsx interception routes: support middleware rewrites (#48450) 2023-04-17 10:07:31 +02:00