Commit 5bcd33fc authored by Nikita Borisowsky's avatar Nikita Borisowsky Committed by Joe Haddad

Fix missing file extensions in docs (#10251)

parent 45d5535b
......@@ -60,7 +60,7 @@ Client-side navigations to a dynamic route can be handled with [`next/link`](/do
Dynamic routes can be extended to catch all paths by adding three dots (`...`) inside the brackets. For example:
- `pages/post/[...slug]` matches `/post/a`, but also `post/a/b`, `post/a/b/c` and so on.
- `pages/post/[...slug].js` matches `/post/a`, but also `post/a/b`, `post/a/b/c` and so on.
Matched parameters will be sent as a query parameter (`slug` in the example) to the page, and it will always be an array, so, the path `/post/a` will have the following `query` object:
......
......@@ -30,7 +30,7 @@ To match a dynamic segment you can use the bracket syntax. This allows you to ma
- `pages/blog/[slug].js` → `/blog/:slug` (`/blog/hello-world`)
- `pages/[username]/settings.js` → `/:username/settings` (`/foo/settings`)
- `pages/post/[...all]` → `/post/*` (`/post/2020/id/title`)
- `pages/post/[...all].js` → `/post/*` (`/post/2020/id/title`)
## Linking between pages
......
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