diff --git a/packages/next/src/utilities/getRequestLocale.ts b/packages/next/src/utilities/getRequestLocale.ts index 4643f1784..be6d636d0 100644 --- a/packages/next/src/utilities/getRequestLocale.ts +++ b/packages/next/src/utilities/getRequestLocale.ts @@ -13,7 +13,7 @@ export async function getRequestLocale({ req }: GetRequestLocalesArgs): Promise< if (req.payload.config.localization) { const localeFromParams = req.query.locale as string | undefined - if (localeFromParams) { + if (req.user && localeFromParams) { await upsertPreferences({ key: 'locale', req, value: localeFromParams }) }