]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
docs: Update navigation-failures.md (#1786)
authorAmon Keishima <pittan@pittankopta.net>
Fri, 7 Apr 2023 12:05:20 +0000 (21:05 +0900)
committerGitHub <noreply@github.com>
Fri, 7 Apr 2023 12:05:20 +0000 (14:05 +0200)
packages/docs/guide/advanced/navigation-failures.md

index 2c2f9dfef51331c8aefd645e48635ee4829cda48..b299075ac213ffd12873d1731c0506de14a11a18 100644 (file)
@@ -77,7 +77,7 @@ All navigation failures expose `to` and `from` properties to reflect the current
 ```js
 // trying to access the admin page
 router.push('/admin').then(failure => {
-  if (isNavigationFailure(failure, NavigationFailureType.redirected)) {
+  if (isNavigationFailure(failure, NavigationFailureType.aborted)) {
     failure.to.path // '/admin'
     failure.from.path // '/'
   }