From 0b012b5773fc369f0c9edc444352558c47a4275f Mon Sep 17 00:00:00 2001 From: Tienson Qin Date: Fri, 22 Dec 2023 21:59:19 +0800 Subject: [PATCH] fix: can't open logseq url Fixes LOG-2969 --- src/electron/electron/window.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/electron/electron/window.cljs b/src/electron/electron/window.cljs index f2b483818..3ac9ff3db 100644 --- a/src/electron/electron/window.cljs +++ b/src/electron/electron/window.cljs @@ -26,7 +26,7 @@ ([url {:keys [graph] :as opts}] (let [win-state (windowStateKeeper (clj->js {:defaultWidth 980 :defaultHeight 700})) native-titlebar? (cfgs/get-item :window/native-titlebar?) - url (if graph (str url "?graph=" graph) url) + url (if graph (str url "#/?graph=" graph) url) win-opts (cond-> {:backgroundColor "#fff" ; SEE https://www.electronjs.org/docs/latest/faq#the-font-looks-blurry-what-is-this-and-what-can-i-do :width (.-width win-state)