Skip to content

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

:art: https://github.com/siyuan-note/siyuan/issues/12038

Vanessac04953be2a5e
diff --git a/app/src/protyle/util/compatibility.ts b/app/src/protyle/util/compatibility.ts
index 4f0a1837f1..f1e10719c4 100644
--- a/app/src/protyle/util/compatibility.ts
+++ b/app/src/protyle/util/compatibility.ts
@@ -7,7 +7,12 @@ export const openByMobile = (uri: string) => {
return;
}
if (window.siyuan.config.system.container === "ios") {
- window.location.href = uri;
+ try {
+ new URL(uri);
+ window.location.href = uri;
+ } catch (e) {
+ window.location.href = 'http://' + uri;
+ }
} else if (isInAndroid()) {
window.JSAndroid.openExternal(uri);
} else {