Skip to content

Commit

Permalink
Revert "fix: redirect status code (nuxt-modules#1861)" (nuxt-modules#…
Browse files Browse the repository at this point in the history
…2337)

This reverts commit 23fe238.

Redirect with status code 302 to avoid browser caching.
  • Loading branch information
wxh06 authored Aug 24, 2023
1 parent b6a01f9 commit 84b425e
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 84b425e

Please sign in to comment.