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