Skip to content

Commit 1cb2b53

Browse files
authored
clearer distinction with redirect
1 parent ca4275a commit 1cb2b53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

active-rfcs/0000-router-navigation-failures.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ The current behavior of Vue Router regarding the promise returned by `push` is i
5959

6060
- `onError` is only triggered on thrown errors and `next(new Error())`
6161
- `afterEach` is only called if there is a navigation
62-
- `redirect` should behave the same as `next('/url')` in a Navigation guard
62+
- `redirect` should behave the same as `next('/url')` in a Navigation guard when it comes to the outcome of `router.push` and calls of `router.afterEach`/`router.onError`. The only differenc being that a `redirect` would only trigger leave guards and other before guards for the redirected location but not the original one
6363

6464
The differences between the Promise resolution/rejection vs `router.afterEach` and `router.onError` are inconsistent and confusing.
6565

0 commit comments

Comments
 (0)