From cef4b4b1538263dc7997fcff81633d9d0a58ab7e Mon Sep 17 00:00:00 2001 From: Joe Haddad Date: Thu, 4 Feb 2021 20:35:09 -0500 Subject: [PATCH] Revert "Fix docs for sample query parameters" (#21881) This reverts commit 9a3a0da319f566caba7fcfa225ab9214e92c935b. --- docs/routing/dynamic-routes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/routing/dynamic-routes.md b/docs/routing/dynamic-routes.md index 0c758977f7d11..f8a74550610f1 100644 --- a/docs/routing/dynamic-routes.md +++ b/docs/routing/dynamic-routes.md @@ -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: