remove middlewere
This commit is contained in:
@@ -86,7 +86,7 @@ export function middleware(request: NextRequest) {
|
||||
|
||||
// If URL has no locale, redirect with preferred locale
|
||||
if (!localeFromPath) {
|
||||
const newUrl = new URL(`/${preferredLocale}/${pathname}`, request.url);
|
||||
const newUrl = new URL(`/${preferredLocale}${pathname}`, request.url);
|
||||
return NextResponse.redirect(newUrl);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user