Skip to content

Commit 3dff684

Browse files
committed
Updated dependencies and README
1 parent 7b4f1f6 commit 3dff684

File tree

3 files changed

+135
-109
lines changed

3 files changed

+135
-109
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export default async function RootLayout({ params, children }: LocaleLayoutProps
7070
// if locale is not supported redirect to a supported one
7171
const validLocale = await checkLanguage(locale, getDefaultLocale());
7272
if(validLocale && locale !== validLocale){
73-
redirect('/'+validLocale+'/');
73+
permanentRedirect('/'+validLocale+'/'); // response code 308 - Permanent Redirect
7474
}
7575

7676
// load translations for given translation keys (note this loadTranslations function is defined in translations.ts, see below)

0 commit comments

Comments
 (0)