diff --git a/src/client/url.ts b/src/client/url.ts index 19af4ef..46c1083 100644 --- a/src/client/url.ts +++ b/src/client/url.ts @@ -3,6 +3,7 @@ import { encodeUrl } from "../shared/rewriters/url"; URL = new Proxy(URL, { construct(target, argArray, newTarget) { if (typeof argArray[0] === "string") argArray[0] = encodeUrl(argArray[0]); + if (typeof argArray[1] === "string") argArray[1] = encodeUrl(argArray[1]); return Reflect.construct(target, argArray, newTarget); },