From c3371c12f5dcf72319a0ff00e3c2b6679c390067 Mon Sep 17 00:00:00 2001 From: Kinder Joy Date: Sun, 11 Jan 2026 20:50:47 +0300 Subject: [PATCH] fix(middleware): avoid double slash in /flashblocks redirect --- apps/web/middleware.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/middleware.ts b/apps/web/middleware.ts index d1c4b52fedb..b68802c16ff 100644 --- a/apps/web/middleware.ts +++ b/apps/web/middleware.ts @@ -14,7 +14,7 @@ export function middleware(req: NextRequest) { if (url.pathname.startsWith('/flashblocks')) { const subPath = url.pathname.replace('/flashblocks', ''); url.host = 'flashblocks.base.org'; - url.pathname = `/${subPath}`; + url.pathname = subPath.startsWith('/') ? subPath : `/${subPath}`; url.port = '443'; return NextResponse.redirect(url);