a34b20e6f2
This PR fixes #41064. In some particular cases, while using a middleware and shallow routing the navigation get stucks and stop refreshing the page. After futher investigation it seems that a line of code was added that causes the router pathname to be incorrect and then making Next believe it's the same page that is loading. ## Bug - [x] Related issues linked using `fixes #number` - [x] Integration tests added - [x] Errors have a helpful link attached, see [`contributing.md`](https://github.com/vercel/next.js/blob/canary/contributing.md) ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [ ] Related issues linked using `fixes #number` - [ ] [e2e](https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs) tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. - [ ] Errors have a helpful link attached, see [`contributing.md`](https://github.com/vercel/next.js/blob/canary/contributing.md) ## Documentation / Examples - [ ] Make sure the linting passes by running `pnpm build && pnpm lint` - [ ] The "examples guidelines" are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md) Co-authored-by: JJ Kasper <jj@jjsweb.site> |
||
---|---|---|
.. | ||
i18n | ||
isomorphic | ||
page-path | ||
router | ||
utils | ||
amp-context.ts | ||
amp-mode.ts | ||
amp.ts | ||
app-router-context.ts | ||
constants.ts | ||
dynamic-no-ssr.ts | ||
dynamic.tsx | ||
escape-regexp.ts | ||
flatten.ts | ||
get-hostname.ts | ||
head-manager-context.ts | ||
head.tsx | ||
hooks-client-context.ts | ||
html-context.ts | ||
image-blur-svg.ts | ||
image-config-context.ts | ||
image-config.ts | ||
image-loader.ts | ||
is-plain-object.ts | ||
loadable-context.ts | ||
loadable.d.ts | ||
loadable.js | ||
match-remote-pattern.ts | ||
mitt.ts | ||
no-ssr-error.ts | ||
router-context.ts | ||
runtime-config.ts | ||
server-inserted-html.tsx | ||
side-effect.tsx | ||
styled-jsx.d.ts | ||
styled-jsx.js | ||
utils.ts |