From c276e64c72af6b6b2ba2f0bef8858fa57e0cf245 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B1=AA=E5=BF=83=E7=A6=BE?= Date: Thu, 24 Aug 2023 15:17:48 +0800 Subject: [PATCH] Revert "fix: redirect status code (#1861)" (#2337) This reverts commit 23fe2385379a91b423ed3a5d2227fda50d0ec404. Redirect with status code 302 to avoid browser caching. --- src/runtime/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/utils.ts b/src/runtime/utils.ts index a5162f51a..8696b6381 100644 --- a/src/runtime/utils.ts +++ b/src/runtime/utils.ts @@ -369,7 +369,7 @@ function _navigate(redirectPath: string, status: number) { export async function navigate( args: NavigateArgs, { - status = 301, + status = 302, rootRedirect = nuxtI18nOptionsDefault.rootRedirect, differentDomains = nuxtI18nOptionsDefault.differentDomains, skipSettingLocaleOnNavigate = nuxtI18nOptionsDefault.skipSettingLocaleOnNavigate,