From 6fdc5dd734807d8e4c0b97053c2f3ddf13efa2a6 Mon Sep 17 00:00:00 2001 From: guitavano Date: Wed, 11 Sep 2024 15:16:12 -0300 Subject: [PATCH] only add search if we have search (#849) --- website/handlers/router.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/handlers/router.ts b/website/handlers/router.ts index fa8e44836..ad40fc661 100644 --- a/website/handlers/router.ts +++ b/website/handlers/router.ts @@ -108,7 +108,7 @@ export const router = ( } return new URLPattern({ pathname: url.pathname, - search: url.search, + ...(url.search ? {search: url.search} : {}), }); })(); const res = pattern.exec(req.url);