From 75db90487f00a7f15ad62016e6c29a205cae154c Mon Sep 17 00:00:00 2001 From: Maxim <73140396+MaximKing1@users.noreply.github.com> Date: Sat, 11 Jun 2022 14:09:48 +0100 Subject: [PATCH] docs: fix mdn links for 301 and 302 http status (#5416) --- docs/content/2.guide/3.directory-structure/7.middleware.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/content/2.guide/3.directory-structure/7.middleware.md b/docs/content/2.guide/3.directory-structure/7.middleware.md index 12d36c6e05..8f90cf9a21 100644 --- a/docs/content/2.guide/3.directory-structure/7.middleware.md +++ b/docs/content/2.guide/3.directory-structure/7.middleware.md @@ -41,10 +41,8 @@ Nuxt provides two globally available helpers that can be returned directly from 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: * nothing - does not block navigation and will move to the next middleware function, if any, or complete the route navigation -* `navigateTo('/')` or `navigateTo({ path: '/' })` - redirects to the given path and will set the redirect code to [`302` Found -](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/302) if the redirect happens on the server side -* `navigateTo('/', { redirectCode: 301 })` - redirects to the given path and will set the redirect code to [`301` Moved Permanently -](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/301) if the redirect happens on the server side +* `navigateTo('/')` or `navigateTo({ path: '/' })` - redirects to the given path and will set the redirect code to [`302` Found](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/302) if the redirect happens on the server side +* `navigateTo('/', { redirectCode: 301 })` - redirects to the given path and will set the redirect code to [`301` Moved Permanently](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/301) if the redirect happens on the server side * `abortNavigation()` - stops the current navigation * `abortNavigation(error)` - rejects the current navigation with an error