Skip to content

Commit c1991c6

Browse files
Just-Moh-itijjk
andauthored
docs: fix grammar for dynamic routes catch-all explanation and give better examples (vercel#48181)
### Why? Making the explanation more obvious because it took quite a while for me to figure out the difference between catch-all and optional catch-all, and I think others may feel the same way too. --------- Co-authored-by: JJ Kasper <jj@jjsweb.site>
1 parent d598fa1 commit c1991c6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

docs/routing/dynamic-routes.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ Read our docs for [Linking between pages](/docs/routing/introduction.md#linking-
9393

9494
Dynamic routes can be extended to catch all paths by adding three dots (`...`) inside the brackets. For example:
9595

96-
- `pages/post/[...slug].js` matches `/post/a`, but also `/post/a/b`, `/post/a/b/c` and so on.
96+
- `pages/post/[...slug].js` not only matches `/post/a`, but also `/post/a/b`, `/post/a/b/c`, and so on.
97+
- `pages/post/[...slug].js` does not match `/post`.
9798

9899
> **Note**: You can use names other than `slug`, such as: `[...param]`
99100

0 commit comments

Comments
 (0)