1
0
Fork 0
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:
gwn 2017-09-27 16:34:50 +03:00 committed by Tim Neutkens
parent f9efc69137
commit 2cfcc6bd5e

View file

@ -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()