Skip to content
Source
Sign inSign up
TanStack/router

fix(router-core): parse non-nested path params correctly #5165

Mergednlynzaad(GitHub profile, opens in a new tab)merged 5 commits intomain fromrefs/pull/5165/headmerged by nlynzaad(GitHub profile, opens in a new tab)

Showing 6 changed files with 41 additions and 3 deletions (loading 3).

x
0 of 6 viewed, 6 left
9 additions and 1 deletione2e/react-router/basic-file-based/src/routes/params-ps/non-nested/route.tsxModified
View file
@@ -16,8 +16,16 @@
to="./$foo/$bar"
params={{ foo: 'foo', bar: 'bar' }}
- /params-ps/non-nested/$foo/$bar
+ /params-ps/non-nested/foo/bar
</Link>
+ <Link
+ from={Route.fullPath}
+ data-testid="l-to-non-nested-foo2-bar2"
+ to="./$foo/$bar"
+ params={{ foo: 'foo2', bar: 'bar2' }}
+ >
+ /params-ps/non-nested/foo2/bar2
+ </Link>
</li>
</ul>
<Outlet />
23 additions and 1 deletione2e/react-router/basic-file-based/tests/params.spec.tsModified
View file
@@ -69,8 +69,9 @@
'href',