rsnext/test/e2e/app-dir/parallel-routes-breadcrumbs
Andrew Gadzik 89ad612165
Fix an issue parsing catchall params (#65277)
This should fix the following scenarios,

- Given a page defined like `app/foo/[...bar]/page.tsx`
- Given a page defined like `app/bar/[[...foo]]/page.tsx`
- Given a parallel route defined like `app/@slot/[...catchall]/page.tsx`

If you navigate to `/foo/bar` the `params` prop in the parallel route
would be

```js
params: {
  catchall: [
    'foo',
    [ 'bar' ]
  ]
}
```

And if you navigate to `/bar/foo` the `params` prop in the parallel
route would be

```js
params: {
  catchall: [
    'bar',
    '[ ...foo ]'
  ]
}
```

With the fix in place, the `params` prop in the parallel route will be,

```js
params: {
  catchall: [
    'foo',
    'bar',
  ]
}
```

And

```js
params: {
  catchall: [
    'bar',
    'foo',
  ]
}
```

Respectively
2024-05-02 18:31:39 +00:00
..
app Fix an issue parsing catchall params (#65277) 2024-05-02 18:31:39 +00:00
next.config.js support breadcrumb style catch-all parallel routes (#65063) 2024-04-26 09:01:37 -07:00
parallel-routes-breadcrumbs.test.ts Fix an issue parsing catchall params (#65277) 2024-05-02 18:31:39 +00:00