mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
ffd7f13c17
In minimal mode, if there was `/[slug].js` with `notFound: true` on the same segment of `_error.js`, `req.url` and `ctx.asPath` were returned as `/[slug]`, since it was re-initialized to the request url. Therefore, don't re-initialize the URL if it is in minimal mode && is the `_error` page. Fixes NEXT-4660 --------- Co-authored-by: JJ Kasper <jj@jjsweb.site>