Skip to content

Commit

Permalink
Revert "Fix docs for sample query parameters" (#21881)
Browse files Browse the repository at this point in the history
This reverts commit 9a3a0da.
  • Loading branch information
Timer authored Feb 5, 2021
1 parent 9a3a0da commit cef4b4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/routing/dynamic-routes.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Similarly, the route `/post/abc?foo=bar` will have the following `query` object:
However, route parameters will override query parameters with the same name. For example, the route `/post/abc?pid=123` will have the following `query` object:

```json
{ "pid": "123" }
{ "pid": "abc" }
```

Multiple dynamic route segments work the same way. The page `pages/post/[pid]/[comment].js` will match the route `/post/abc/a-comment` and its `query` object will be:
Expand Down

0 comments on commit cef4b4b

Please sign in to comment.