rsnext/test/e2e/app-dir/navigation/app
Zack Tanner a19b3bc6fb
fix navigation issue when dynamic param casing changes (#61726)
### What
When navigating to a page with dynamic params using a certain casing,
and then following a link to another page using _different_ casing for
the same param, the router would get stuck in an infinite suspense
cycle.

### Why
On the client we normalize cache keys by lowercasing the values for
dynamic segments. However the RSC data for each segment wouldn't have
this same casing logic applied. This is causing the router to not
recognize that there is already RSC data available for that segment,
resulting in an infinite suspense cycle.

### How
The `toLowerCase()` logic shouldn't be needed here. Technically we could
leave this in place and update `matchSegment` to also apply the
lowercase logic, but currently there are too many utility functions that
parse segments to comfortably make that change. I confirmed that the bug
related to why we lowercased these router cache keys is no longer
present after making this change.

Fixes #61722
Closes NEXT-2377
2024-02-06 08:59:18 -08:00
..
assertion Export RedirectType from next/navigation (#54729) 2023-08-29 11:05:44 -07:00
dynamic-param-casing-change fix navigation issue when dynamic param casing changes (#61726) 2024-02-06 08:59:18 -08:00
external-push/[storageKey] app router: Fix infinite redirect loop in MPA navigation (#49058) 2023-05-03 11:04:53 +02:00
hash App Router: fix relative query/hash handling in next/link and router push/replace (#49521) 2023-05-28 10:29:00 -07:00
hash-changes Support scroll: false for Link component for app router (#51869) 2023-07-04 10:25:25 +02:00
hash-link-back-to-same-page Fix going back to page after applying hash link (#50006) 2023-05-18 16:33:58 -07:00
hash-link-to-pages-router fix(next/client): keep hash when navigating from app to pages router (#56223) 2023-10-02 14:43:04 -07:00
hash-with-scroll-offset fix: app router hash scrolling should respect scroll-padding (#51268) 2023-06-13 20:50:51 -07:00
metadata-await-promise fix loading issue when navigating to page with async metadata (#61687) 2024-02-06 07:10:53 -08:00
mpa-nav-test fix: ensure mpa navigation render side effects are only fired once (#55032) 2023-09-07 20:53:07 +00:00
nested-navigation fix infinite navigate events when Promise is proxied (#54394) 2023-08-24 16:22:48 +00:00
nested-relative-query-and-hash App Router: fix relative query/hash handling in next/link and router push/replace (#49521) 2023-05-28 10:29:00 -07:00
not-found Failing tests for 404 back/forward (#50047) 2023-05-22 17:04:36 +02:00
redirect Export RedirectType from next/navigation (#54729) 2023-08-29 11:05:44 -07:00
redirect-dest
router Fix client chunk loading encoding for dynamic route (#57960) 2023-11-02 23:09:25 +00:00
scroll-restoration fix inconsistent scroll restoration behavior (#59366) 2023-12-07 11:17:15 -08:00
search-params fix: Don't reset shallow URL updates on prefetch (#58297) 2023-11-14 19:29:18 +00:00
layout.js Add test for next-found and redirect for metadata (#46248) 2023-02-22 18:54:14 +01:00
page.js