fix: change to permanent redirects were applicable
This commit is contained in:
@@ -26,7 +26,9 @@ export const middleware: NextMiddleware = async (request) => {
|
||||
const overviewUrl = overview[lang]
|
||||
const redirectUrl = new URL(overviewUrl, nextUrlPublic)
|
||||
console.log(`[myPages] redirecting to: ${redirectUrl}`)
|
||||
return NextResponse.redirect(redirectUrl)
|
||||
return NextResponse.redirect(redirectUrl, {
|
||||
status: 308,
|
||||
})
|
||||
}
|
||||
|
||||
const pathNameWithoutLang = nextUrl.pathname.replace(`/${lang}`, "")
|
||||
|
||||
Reference in New Issue
Block a user