Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 49c6546

Browse files
liuhelen10jeresig
authored andcommitted
Update req.url to be req.path (remix-run#5880)
URL's with query strings don't get matched correctly when using `req.url`. `req.path` is required instead. remix-run#5285
1 parent a96b47d commit 49c6546

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-router/docs/api/matchPath.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const match = matchPath('/users/123', {
1515
## pathname
1616

1717
The first argument is the pathname you want to match. If you're using
18-
this on the server with Node.js, it would be `req.url`.
18+
this on the server with Node.js, it would be `req.path`.
1919

2020
## props
2121

0 commit comments

Comments
 (0)