An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: When exporting PDF, clicking on footnote links no longer opens the main window (#17398)
Jeffrey Chena94204487e0d
diff --git a/app/electron/main.js b/app/electron/main.jsindex 28a3d8caf2..08089ceb0e 100644--- a/app/electron/main.js+++ b/app/electron/main.js@@ -115,17 +115,11 @@ const windowNavigate = (currentWindow, windowType) => {if (url.startsWith(localServer)) {try {const pathname = new URL(url).pathname;- // 所有窗口都允许认证页面- if (pathname === "/check-auth" || pathname === "/") {- return;- }- if (pathname === "/stage/build/app/" && windowType === "app") {- return;- }- if (pathname === "/stage/build/app/window.html" && windowType === "window") {- return;- }- if (pathname.startsWith("/export/temp/") && windowType === "export") {+ if (+ (windowType === "app" && ["/", "/stage/build/app/", "/check-auth"].includes(pathname) ||+ (windowType === "window" && ["/stage/build/app/window.html", "/check-auth"].includes(pathname))) ||+ (windowType === "export" && pathname.startsWith("/export/temp/"))+ ) {return;}} catch (e) {