Hello experts,
I’m stuck on the rendering of my advanced query
This query will find all the pages tagged with the page I’m currently on.
(Use-case scenario : current page is a contact page, and tagged pages are project pages this contact is responsible for )
#+BEGIN_QUERY
{:title [:h3 “ Related projects”]
:query [:find ?name
:in $ ?tag
:where
[?t :block/name ?tag]
[?p :block/tags ?t]
[?p :block/name ?name]
]
:inputs [:query-page]
:view (fn [result]
[:div.flex.flex-col
(for [page result]
[:a {:href (str “#/page/” page )} page]
)]
)
:collapsed? false}
#+END_QUERY
The result is the correct one but as soon as I click on the link, logseq becomes blank.
I lacking knowledge on datalog to identify the error in the way I render the result.
has anyone an idea ?