Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: fix https://github.com/siyuan-note/siyuan/issues/12675

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