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/pull/16415

Vanessa0f0db729bf60
diff --git a/app/src/protyle/toolbar/util.ts b/app/src/protyle/toolbar/util.ts
index 621e4e863f..1978002c95 100644
--- a/app/src/protyle/toolbar/util.ts
+++ b/app/src/protyle/toolbar/util.ts
@@ -237,8 +237,7 @@ export const copyTextByType = async (ids: string[],
const response = await fetchSyncPost("/api/filetree/getHPathByID", {id});
text += response.data;
} else if (type === "webURL") {
- const origin = window.location.origin;
- text += `${origin}/?id=${id}`;
+ text += `${window.location.origin}/?id=${id}`;
} else if (type === "id") {
text += id;
}