Closed agadzik closed 2 weeks ago
This should fix the following scenarios,
app/foo/[...bar]/page.tsx
app/bar/[[...foo]]/page.tsx
app/@slot/[...catchall]/page.tsx
If you navigate to /foo/bar the params prop in the parallel route would be
/foo/bar
params
params: { catchall: [ 'foo', [ 'bar' ] ] }
And if you navigate to /bar/foo the params prop in the parallel route would be
/bar/foo
params: { catchall: [ 'bar', '[ ...foo ]' ] }
With the fix in place, the params prop in the parallel route will be,
params: { catchall: [ 'foo', 'bar', ] }
And
params: { catchall: [ 'bar', 'foo', ] }
Respectively
Allow CI Workflow Run
Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer
Commit: 12652b615c49216bdf91505cc5586c18a6f12c6e
This should fix the following scenarios,
app/foo/[...bar]/page.tsx
app/bar/[[...foo]]/page.tsx
app/@slot/[...catchall]/page.tsx
If you navigate to
/foo/bar
theparams
prop in the parallel route would beAnd if you navigate to
/bar/foo
theparams
prop in the parallel route would beWith the fix in place, the
params
prop in the parallel route will be,And
Respectively