remove middlewere

This commit is contained in:
nabijonovdavronbek619@gmail.com
2026-03-02 17:27:38 +05:00
parent 11a18b52ce
commit a0f8ef76d7

View File

@@ -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);
}