Unverified Commit 8377773b authored by liketiger's avatar liketiger Committed by GitHub

docs: improve dynamic routes example in project structure page (#84086)

## Documentation Update

This PR improves the dynamic routes example in the
`project-structure.mdx` page.

### Changes
- Updated catch-all segments example:
  - Before: `/shop/clothing/shoes`
  - After:  `/shop/clothing`
- Adjusted follow-up examples for consistency:
  - `/shop/a`, `/shop/a/b` → `/shop/clothing`, `/shop/clothing/shirts`

### Why
- Provides a clearer and more intuitive demonstration of how catch-all
segments work.
- Keeps the example consistent with other dynamic routes documentation.
Co-authored-by: 's avatarJoseph <joseph.chamochumbi@vercel.com>
parent 81bccc93
...@@ -85,7 +85,7 @@ Parameterize segments with square brackets. Use `[segment]` for a single param, ...@@ -85,7 +85,7 @@ Parameterize segments with square brackets. Use `[segment]` for a single param,
| Path | URL pattern | | Path | URL pattern |
| ------------------------------- | -------------------------------------------------------------------- | | ------------------------------- | -------------------------------------------------------------------- |
| `app/blog/[slug]/page.tsx` | `/blog/my-first-post` | | `app/blog/[slug]/page.tsx` | `/blog/my-first-post` |
| `app/shop/[...slug]/page.tsx` | `/shop/clothing/shoes`, `/shop/clothing/shirts` | | `app/shop/[...slug]/page.tsx` | `/shop/clothing`, `/shop/clothing/shirts` |
| `app/docs/[[...slug]]/page.tsx` | `/docs`, `/docs/layouts-and-pages`, `/docs/api-reference/use-router` | | `app/docs/[[...slug]]/page.tsx` | `/docs`, `/docs/layouts-and-pages`, `/docs/api-reference/use-router` |
### Route Groups and private folders ### Route Groups and private folders
......
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