mirror of
https://github.com/logseq/logseq.git
synced 2026-05-03 10:26:35 +00:00
Fix inconsistent page links for web/publishing
When coming from search, page links were capitalized but most everywhere else page links were lower case. This fix consistently enforces lower case
This commit is contained in:
committed by
Tienson Qin
parent
2b81378ba2
commit
b6abd05a97
@@ -56,7 +56,9 @@
|
||||
:path-params {:name (get-in block [:block/page :block/name])
|
||||
:block-route-name (model/heading-content->route-name (:block/content block))}}
|
||||
{:to :page
|
||||
:path-params {:name (str page-name-or-block-uuid)}})))
|
||||
:path-params {:name (if (string? page-name-or-block-uuid)
|
||||
(util/page-name-sanity-lc page-name-or-block-uuid)
|
||||
(str page-name-or-block-uuid))}})))
|
||||
|
||||
(defn- default-page-route [page-name]
|
||||
{:to :page
|
||||
|
||||
Reference in New Issue
Block a user