diff --git a/app/src/protyle/util/compatibility.ts b/app/src/protyle/util/compatibility.ts index 7d6ae41d9..a4f30a4cd 100644 --- a/app/src/protyle/util/compatibility.ts +++ b/app/src/protyle/util/compatibility.ts @@ -8,15 +8,15 @@ export const openByMobile = (uri: string) => { } if (isInIOS()) { if (uri.startsWith("assets/")) { - window.webkit.messageHandlers.openLink.postMessage(encodeURI(location.origin + "/" + uri)); + window.webkit.messageHandlers.openLink.postMessage(location.origin + "/" + uri); } else if (uri.startsWith("/")) { - window.webkit.messageHandlers.openLink.postMessage(encodeURI(location.origin + uri)); + window.webkit.messageHandlers.openLink.postMessage(location.origin + uri); } else { try { new URL(uri); - window.webkit.messageHandlers.openLink.postMessage(encodeURI(uri)); + window.webkit.messageHandlers.openLink.postMessage(uri); } catch (e) { - window.webkit.messageHandlers.openLink.postMessage(encodeURI("https://" + uri)); + window.webkit.messageHandlers.openLink.postMessage("https://" + uri); } } } else if (isInAndroid()) {