Commit 2cfcc6bd authored by gwn's avatar gwn Committed by Tim Neutkens

Add "asPath" information to url objects (#2988)

parent f9efc691
...@@ -84,6 +84,7 @@ function createUrl (router) { ...@@ -84,6 +84,7 @@ function createUrl (router) {
return { return {
query: router.query, query: router.query,
pathname: router.pathname, pathname: router.pathname,
asPath: router.asPath,
back: () => { back: () => {
warn(`Warning: 'url.back()' is deprecated. Use "window.history.back()"`) warn(`Warning: 'url.back()' is deprecated. Use "window.history.back()"`)
router.back() router.back()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment