diff --git a/core/native-bridge.ts b/core/native-bridge.ts index fc2163640a..f16c9a67d9 100644 --- a/core/native-bridge.ts +++ b/core/native-bridge.ts @@ -132,7 +132,7 @@ const isRelativeOrProxyUrl = (url: string | undefined): boolean => const createProxyUrl = (url: string, win: WindowCapacitor): string => { if (isRelativeOrProxyUrl(url)) return url; const bridgeUrl = new URL(win.Capacitor?.getServerUrl() ?? ''); - bridgeUrl.pathname = `${CAPACITOR_HTTP_INTERCEPTOR}`; + bridgeUrl.pathname = CAPACITOR_HTTP_INTERCEPTOR; // URLSearchParams `append()` method will automatically percent encode the url bridgeUrl.searchParams.append(CAPACITOR_HTTP_INTERCEPTOR_URL_PARAM, url);