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

Vanessa8f9df4ac3ff6
diff --git a/app/src/protyle/toolbar/Link.ts b/app/src/protyle/toolbar/Link.ts
index 47b6019e8a..003f6e8fd9 100644
--- a/app/src/protyle/toolbar/Link.ts
+++ b/app/src/protyle/toolbar/Link.ts
@@ -45,6 +45,10 @@ export class Link extends ToolbarItem {
}
}
}
+ // https://github.com/siyuan-note/siyuan/issues/12867
+ if (!dataHref && clipText.startsWith("assets/")) {
+ dataHref = clipText;
+ }
} catch (e) {
console.log(e);
}