Unverified Commit cef4b4b1 authored by Joe Haddad's avatar Joe Haddad Committed by GitHub

Revert "Fix docs for sample query parameters" (#21881)

This reverts commit 9a3a0da3.
parent 9a3a0da3
...@@ -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": "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: 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