8000 Updated readme to reflect proper name of url.pathname property (#66) · JavaScriptExpert/next.js@1602a45 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1602a45

Browse files
avanslaarsnkzawa
authored andcommitted
Updated readme to reflect proper name of url.pathname property (vercel#66)
1 parent b287d70 commit 1602a45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ Client-side routing behaves exactly like the native UA:
150150

151151
Each top-level component receives a `url` property with the following API:
152152

153-
- `path` - `String` of the current path excluding the query string
153+
- `pathname` - `String` of the current path excluding the query string
154154
- `query` - `Object` with the parsed query string. Defaults to `{}`
155155
- `push(url)` - performs a `pushState` call associated with the current component
156156
- `replace(url)` - performs a `replaceState` call associated with the current component

0 commit comments

Comments
 (0)
0