Unverified Commit 9a3a0da3 authored by Sam Holmes's avatar Sam Holmes Committed by GitHub

Fix docs for sample query parameters (#21879)

parent a98ba4c8
...@@ -45,7 +45,7 @@ Similarly, the route `/post/abc?foo=bar` will have the following `query` object: ...@@ -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: 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 ```json
{ "pid": "abc" } { "pid": "123" }
``` ```
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: 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:
......
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