mirror of
https://github.com/logseq/logseq.git
synced 2026-04-29 00:24:51 +00:00
Fix: broken linked references (#6105)
* enhance: clicking the refresh button if a query is slow * fix: skip running slow queries if there's no need to refresh * fix: linked reference filtering does not work on TASK items close #1669 * fix: each block should have its own page as a reference when query page references * fix: references * fix: non consecutive blocks in query result and filtered linked references * simplify filters logic * fix: ref numbers * Save both :block/refs and :block/path-refs for different usage * fix: block refs * enhance: move scheduled and deadlines to its own ns * linked references performance tweaks * mouse hover filters icon to expand the collapsed linked refs * perf: react/refresh! once instead twice * enhance: compute flashcards every hour instead of every 5s * feat: macros as blocks * feat: flashcards list * fix: refed pages count * fix: can't select in linked references * fix: block editing on linked refs * perf: editing in linked references * enhance: update srs cards number when clicking flashcards * Add a test for the case fixed in #6100 * Address feedbacks from Gabriel * fix: Block Ref Indicator is missing from the references-blocks class close #5375 * fix: referenced pages * fix: page refs * fix: Using filters pushed the title property to the second block close #5845 Co-authored-by: Gabriel Horner <gabriel@logseq.com>
This commit is contained in:
@@ -38,20 +38,19 @@
|
||||
(defn redirect-to-page!
|
||||
"Must ensure `page-name` is dereferenced (not an alias), or it will create a wrong new page with that name (#3511)."
|
||||
([page-name]
|
||||
(recent-handler/add-page-to-recent! (state/get-current-repo) page-name)
|
||||
(redirect! {:to :page
|
||||
:path-params {:name (str page-name)}}))
|
||||
([page-name anchor]
|
||||
(recent-handler/add-page-to-recent! (state/get-current-repo) page-name)
|
||||
(redirect! {:to :page
|
||||
:path-params {:name (str page-name)}
|
||||
:query-params {:anchor anchor}}))
|
||||
([page-name anchor push]
|
||||
(recent-handler/add-page-to-recent! (state/get-current-repo) page-name)
|
||||
(redirect! {:to :page
|
||||
:path-params {:name (str page-name)}
|
||||
:query-params {:anchor anchor}
|
||||
:push push})))
|
||||
(redirect-to-page! page-name {}))
|
||||
([page-name {:keys [anchor push click-from-recent?]
|
||||
:or {click-from-recent? false}}]
|
||||
(recent-handler/add-page-to-recent! (state/get-current-repo) page-name
|
||||
click-from-recent?)
|
||||
(let [m (cond->
|
||||
{:to :page
|
||||
:path-params {:name (str page-name)}}
|
||||
anchor
|
||||
(assoc :query-params {:anchor anchor})
|
||||
push
|
||||
(assoc :push push))]
|
||||
(redirect! m))))
|
||||
|
||||
(defn get-title
|
||||
[name path-params]
|
||||
|
||||
Reference in New Issue
Block a user