mirror of
https://github.com/logseq/logseq.git
synced 2026-05-03 02:16:30 +00:00
fix: introduce more page-name sanity
This commit is contained in:
@@ -85,7 +85,7 @@
|
||||
:href (rfe/href :page {:name page})
|
||||
:on-click (fn [e]
|
||||
(when (gobj/get e "shiftKey")
|
||||
(when-let [page (db/entity [:block/name (string/lower-case page)])]
|
||||
(when-let [page (db/entity [:block/name (util/page-name-sanity-lc page)])]
|
||||
(state/sidebar-add-block!
|
||||
(state/get-current-repo)
|
||||
(:db/id page)
|
||||
|
||||
Reference in New Issue
Block a user