Skip to content

Commit 81e6ce0

Browse files
dancrumbposva
authored andcommitted
chore(docs): add link to onError
Closes #1973 (#1974)
1 parent 0ecd68a commit 81e6ce0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: docs/en/advanced/navigation-guards.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Every guard function receives three arguments:
3232

3333
- **`next('/')` or `next({ path: '/' })`**: redirect to a different location. The current navigation will be aborted and a new one will be started. You can pass any location object to `next`, which allows you to specify options like `replace: true`, `name: 'home'` and any option used in [`router-link`'s `to` prop](../api/router-link.md) or [`router.push`](../api/router-instance.md#methods)
3434

35-
- **`next(error)`**: (2.4.0+) if the argument passed to `next` is an instance of `Error`, the navigation will be aborted and the error will be passed to callbacks registered via `router.onError()`.
35+
- **`next(error)`**: (2.4.0+) if the argument passed to `next` is an instance of `Error`, the navigation will be aborted and the error will be passed to callbacks registered via [`router.onError()`](../api/router-instance.html#methods).
3636

3737
**Make sure to always call the `next` function, otherwise the hook will never be resolved.**
3838

0 commit comments

Comments
 (0)