mirror of
https://github.com/logseq/logseq.git
synced 2026-05-04 02:46:45 +00:00
fix: fragment links especially the footnotes
This commit is contained in:
@@ -129,9 +129,10 @@
|
||||
|
||||
:block
|
||||
(let [block-uuid (uuid (:block/uuid data))
|
||||
page (:page/name (:block/page (db/entity [:block/uuid block-uuid])))
|
||||
path (str "/page/" (util/encode-str page) "#ls-block-" (:block/uuid data))]
|
||||
(route/redirect-with-fragment! path))
|
||||
page (:page/name (:block/page (db/entity [:block/uuid block-uuid])))]
|
||||
(route/redirect! {:to :page
|
||||
:path-params {:name page}
|
||||
:query-params {:anchor (str "ls-block-" (:block/uuid data))}}))
|
||||
nil))
|
||||
:on-shift-chosen (fn [{:keys [type data]}]
|
||||
(case type
|
||||
|
||||
Reference in New Issue
Block a user