diff --git a/docs/content/1.docs/2.guide/2.directory-structure/1.middleware.md b/docs/content/1.docs/2.guide/2.directory-structure/1.middleware.md index e60f4aafcb..4441ff7479 100644 --- a/docs/content/1.docs/2.guide/2.directory-structure/1.middleware.md +++ b/docs/content/1.docs/2.guide/2.directory-structure/1.middleware.md @@ -36,7 +36,7 @@ export default defineNuxtRouteMiddleware((to, from) => { Nuxt provides two globally available helpers that can be returned directly from the middleware: -1. `navigateTo (to: RouteLocationRaw | undefined | null, options: { replace: boolean, redirectCode: number, external: boolean )` - Redirects to the given route, within plugins or middleware. It can also be called directly to perform page navigation. +1. `navigateTo (to: RouteLocationRaw | undefined | null, options?: { replace: boolean, redirectCode: number, external: boolean )` - Redirects to the given route, within plugins or middleware. It can also be called directly to perform page navigation. 2. `abortNavigation (err?: string | Error)` - Aborts the navigation, with an optional error message. Unlike navigation guards in [the vue-router docs](https://router.vuejs.org/guide/advanced/navigation-guards.html#global-before-guards), a third `next()` argument is not passed, and redirects or route cancellation is handled by returning a value from the middleware. Possible return values are: