mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Add "asPath" information to url objects (#2988)
This commit is contained in:
parent
f9efc69137
commit
2cfcc6bd5e
|
@ -84,6 +84,7 @@ function createUrl (router) {
|
|||
return {
|
||||
query: router.query,
|
||||
pathname: router.pathname,
|
||||
asPath: router.asPath,
|
||||
back: () => {
|
||||
warn(`Warning: 'url.back()' is deprecated. Use "window.history.back()"`)
|
||||
router.back()
|
||||
|
|
Loading…
Reference in a new issue