Unverified Commit 0bb6b56c authored by Hirotomo Yamada's avatar Hirotomo Yamada Committed by GitHub

docs: fix 02-dynamic-routes.mdx (#57029)

params from `{}` to `{ slug: [] }`.

Fixes #57027
parent fa100e29
...@@ -58,7 +58,7 @@ The difference between **catch-all** and **optional catch-all** segments is that ...@@ -58,7 +58,7 @@ The difference between **catch-all** and **optional catch-all** segments is that
| Route | Example URL | `params` | | Route | Example URL | `params` |
| --------------------------- | ------------- | --------------------------- | | --------------------------- | ------------- | --------------------------- |
| `pages/shop/[[...slug]].js` | `/shop` | `{}` | | `pages/shop/[[...slug]].js` | `/shop` | `{ slug: [] }` |
| `pages/shop/[[...slug]].js` | `/shop/a` | `{ slug: ['a'] }` | | `pages/shop/[[...slug]].js` | `/shop/a` | `{ slug: ['a'] }` |
| `pages/shop/[[...slug]].js` | `/shop/a/b` | `{ slug: ['a', 'b'] }` | | `pages/shop/[[...slug]].js` | `/shop/a/b` | `{ slug: ['a', 'b'] }` |
| `pages/shop/[[...slug]].js` | `/shop/a/b/c` | `{ slug: ['a', 'b', 'c'] }` | | `pages/shop/[[...slug]].js` | `/shop/a/b/c` | `{ slug: ['a', 'b', 'c'] }` |
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment