Skip to content

Commit 7818cd0

Browse files
authored
docs: improve dynamic routes example in project structure page
Updated dynamic routes example in `project-structure.mdx`. (catch-all segments) Changed example from `/shop/clothing/shoes` to `/shop/clothing` for clarity and consistency. This makes the catch-all segment usage more intuitive: `/shop/a`, `/shop/a/b` → `/shop/clothing`, `/shop/clothing/shirts`.
1 parent 237f142 commit 7818cd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/01-app/01-getting-started/02-project-structure.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Parameterize segments with square brackets. Use `[segment]` for a single param,
8585
| Path | URL pattern |
8686
| ------------------------------- | -------------------------------------------------------------------- |
8787
| `app/blog/[slug]/page.tsx` | `/blog/my-first-post` |
88-
| `app/shop/[...slug]/page.tsx` | `/shop/clothing/shoes`, `/shop/clothing/shirts` |
88+
| `app/shop/[...slug]/page.tsx` | `/shop/clothing`, `/shop/clothing/shirts` |
8989
| `app/docs/[[...slug]]/page.tsx` | `/docs`, `/docs/layouts-and-pages`, `/docs/api-reference/use-router` |
9090

9191
### Route Groups and private folders

0 commit comments

Comments
 (0)