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

Vanessa64c8ce7bb650
diff --git a/app/src/block/popover.ts b/app/src/block/popover.ts
index 4a4aba6baf..687de31fac 100644
--- a/app/src/block/popover.ts
+++ b/app/src/block/popover.ts
@@ -47,7 +47,9 @@ export const initBlockPopover = (app: App) => {
if (!tip) {
const href = aElement.getAttribute("data-href") || "";
// 链接地址强制换行 https://github.com/siyuan-note/siyuan/issues/11539
- tip = `<span style="word-break: break-all">${href.substring(0, Constants.SIZE_TITLE)}</span>`;
+ if (href) {
+ tip = `<span style="word-break: break-all">${href.substring(0, Constants.SIZE_TITLE)}</span>`;
+ }
const title = aElement.getAttribute("data-title");
if (tip && isLocalPath(href) && !aElement.classList.contains("b3-tooltips")) {
let assetTip = tip;