diff --git a/docs/src/middleware.ts b/docs/src/middleware.ts index d5e7d072..83056051 100644 --- a/docs/src/middleware.ts +++ b/docs/src/middleware.ts @@ -99,6 +99,6 @@ export function middleware(request: NextRequest) { nextUrl.defaultLocale ) ) - return NextResponse.rewrite(new URL('/index.en', request.url)) + return NextResponse.redirect(new URL(url, request.url)) } } \ No newline at end of file