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

Vanessaba9335531ae4
diff --git a/app/src/boot/onGetConfig.ts b/app/src/boot/onGetConfig.ts
index 41e9d5f413..aec6b73759 100644
--- a/app/src/boot/onGetConfig.ts
+++ b/app/src/boot/onGetConfig.ts
@@ -179,8 +179,8 @@ export const initWindow = async (app: App) => {
} catch (error) {
return;
}
- if (urlObj && urlObj.pathname.startsWith("//plugins/")) {
- const pluginNameType = urlObj.pathname.replace("//plugins/", "");
+ if (urlObj && urlObj.hostname === "plugins") {
+ const pluginNameType = urlObj.pathname.split("/")[1];
if (!pluginNameType) {
return;
}