Skip to content

Commit

Permalink
Revert "fix: redirect status code (#1861)" (#2337)
Browse files Browse the repository at this point in the history
This reverts commit 23fe238.

Redirect with status code 302 to avoid browser caching.
  • Loading branch information
wxh06 authored Aug 24, 2023
1 parent 7198ca9 commit c276e64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ function _navigate(redirectPath: string, status: number) {
export async function navigate<Context extends NuxtApp = NuxtApp>(
args: NavigateArgs,
{
status = 301,
status = 302,
rootRedirect = nuxtI18nOptionsDefault.rootRedirect,
differentDomains = nuxtI18nOptionsDefault.differentDomains,
skipSettingLocaleOnNavigate = nuxtI18nOptionsDefault.skipSettingLocaleOnNavigate,
Expand Down

0 comments on commit c276e64

Please sign in to comment.