From 2ef7a67bc103d2f0284b7131cadab546cfa93767 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B1=AA=E5=BF=83=E7=A6=BE?= Date: Tue, 22 Aug 2023 18:16:28 +0800 Subject: [PATCH] Revert "fix: redirect status code (#1861)" 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,