Browse Source

fix: can't navigate to journal page in file graphs

Occurred when home page was configured
Fixes
https://test.logseq.com/#/page/67ea96a6-067c-4569-a02a-6ff8d43619a0
Gabriel Horner 8 months ago
parent
commit
bc47905416
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/main/frontend/components/page.cljs

+ 2 - 1
src/main/frontend/components/page.cljs

@@ -414,7 +414,8 @@
                                        :preview? preview?})
               [:span.title.block
                {:on-click (fn []
-                            (when (and (state/home?) (not preview?))
+                            (when (and (not preview?)
+                                       (contains? #{:home :all-journals} (get-in (state/get-route-match) [:data :name])))
                               (route-handler/redirect-to-page! (:block/uuid page))))
                 :data-value @*input-value
                 :data-ref   (:block/title page)