next.js
f2ce2307 - Fix ensurePage for client-side navigation to / in Turbopack (#56704)

Commit
2 years ago
Fix ensurePage for client-side navigation to / in Turbopack (#56704) While investigating the failing test case of `test/integration/scroll-forward-restoration/test/index.test.js` I found that navigating from `/another` to `/` using `next/link` with a `href="/"` errored on `ensurePage` as "this page was not built". Turns normalization wasn't applied on these so the input `page` was `/index` instead of `/`, where it expects `/` as the input.
Author
Parents
Loading