From 08c7dc2a61b24e87d6e510521f275d3bda0041ef Mon Sep 17 00:00:00 2001 From: Vanessa Date: Mon, 3 Mar 2025 12:14:36 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/14249 --- app/src/menus/protyle.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/menus/protyle.ts b/app/src/menus/protyle.ts index 84971bffb..bc34880b9 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) + "..."; }