Skip to content

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

:art: Improve file:// address decoding https://github.com/siyuan-note/siyuan/issues/13908

Daniel15349ebfb156
diff --git a/app/src/editor/util.ts b/app/src/editor/util.ts
index f30062a433..60b4c0c72b 100644
--- a/app/src/editor/util.ts
+++ b/app/src/editor/util.ts
@@ -697,6 +697,7 @@ export const openBy = (url: string, type: "folder" | "app") => {
} else {
address = url.replace("file://", "");
}
+ address = address.replace(/%20/g, " ");
// 拖入文件名包含 `)` 、`(` 的文件以 `file://` 插入后链接解析错误 https://github.com/siyuan-note/siyuan/issues/5786
address = address.replace(/\\\)/g, ")").replace(/\\\(/g, "(");
if (type === "app") {