]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
docs: missing part on redirections
authorEduardo San Martin Morote <posva13@gmail.com>
Thu, 12 Nov 2020 16:49:45 +0000 (17:49 +0100)
committerEduardo San Martin Morote <posva13@gmail.com>
Thu, 12 Nov 2020 16:49:45 +0000 (17:49 +0100)
docs/guide/advanced/navigation-failures.md

index 237e8a6c02e5a5981870516d5553f02521b2ccd0..e5e096f7c3d7d3a9d5f44d3373d1625ee1e6d176 100644 (file)
@@ -87,5 +87,8 @@ When returning a new location inside of a Navigation Guard, we are triggering a
 
 ```js
 await router.push('/my-profile')
-if (router)
+if (router.currentRoute.value.redirectedFrom) {
+  // redirectedFrom is resolved route location like to and from in navigation
+  // guards
+}
 ```