Querying pages with hierarchy

To answer the original question, it’s in the link you create. You have to substitute / with %2F.
Like so:

[:a {:href (str "#/page/" (clojure.string/replace name "/" "%2F"))} original-name]

Also you probably don’t need that whole view section either way.

The following query is also much more straight forward:

#+BEGIN_QUERY
{:title "Current Members"
 :query [:find (pull ?p [*])
  :in $ ?current
  :where
   [?c :block/name ?current]
   [?p :block/namespace ?c]
 ]
 :inputs [:query-page]
}
#+END_QUERY
1 Like