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

Vanessa08c7dc2a61b2
diff --git a/app/src/menus/protyle.ts b/app/src/menus/protyle.ts
index 84971bffb1..bc34880b9c 100644
--- a/app/src/menus/protyle.ts
+++ b/app/src/menus/protyle.ts
@@ -1503,7 +1503,7 @@ export const linkMenu = (protyle: IProtyle, linkElement: HTMLElement, focusText
// https://github.com/siyuan-note/siyuan/issues/6798
let anchor = linkElement.textContent.replace(Constants.ZWSP, "");
if (!anchor && linkAddress) {
- anchor = linkAddress.replace("https://", "").replace("http://", "");
+ anchor = decodeURIComponent(linkAddress.replace("https://", "").replace("http://", ""));
if (anchor.length > Constants.SIZE_LINK_TEXT_MAX) {
anchor = anchor.substring(0, Constants.SIZE_LINK_TEXT_MAX) + "...";
}