c116da32de
### What & Why When an RSC triggers `navigate` after the shell has already been sent to the client, a meta tag is inserted to signal to the browser it needs to perform an MPA navigation. This is primarily used for bot user agents, since we wouldn't have been able to provide a proper redirect status code (since it occurred after the initial response was sent). However, the router would trigger a SPA navigation, while the `<meta>` tag lagged to perform an MPA navigation, resulting in 2 navigations to the same URL. ### How When the client side code attempts to handle the redirect, we treat it like an MPA navigation. This will suspend in render and trigger a `location.push`/`location.replace` to the targeted URL. As a result, only one of these navigation events will win. Fixes #59800 Fixes #62463 Closes NEXT-2952 Closes NEXT-2719 |
||
---|---|---|
.. | ||
assertion | ||
dynamic-param-casing-change | ||
external-push/[storageKey] | ||
hash | ||
hash-changes | ||
hash-link-back-to-same-page | ||
hash-link-to-pages-router | ||
hash-with-scroll-offset | ||
metadata-await-promise | ||
mpa-nav-test | ||
nested-navigation | ||
nested-relative-query-and-hash | ||
not-found | ||
popstate-revalidate | ||
redirect | ||
redirect-dest | ||
router | ||
scroll-restoration | ||
search-params | ||
layout.js | ||
page.js |