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/5980

Liang Dingaf25cf1d7c14
diff --git a/app/src/util/pathName.ts b/app/src/util/pathName.ts
index 465c88b9ce..5e0aaaf9d7 100644
--- a/app/src/util/pathName.ts
+++ b/app/src/util/pathName.ts
@@ -37,7 +37,8 @@ export const isLocalPath = (link: string) => {
if (!link) {
return false;
}
- return link.startsWith("assets/") || link.startsWith("file://");
+ return link.startsWith("assets/") || link.startsWith("file://") ||
+ 0 < link.indexOf(":/") || link.startsWith("\\\\"); // 超链接地址更好地兼容本地路径 https://github.com/siyuan-note/siyuan/issues/5980
};
export const pathPosix = () => {