fix: search namespace page

This commit is contained in:
Tienson Qin
2024-09-13 20:50:18 +08:00
parent a685eee5e1
commit d6b0f260a4

View File

@@ -103,7 +103,7 @@
(take 5 items))))
node-exists? (let [blocks-result (keep :source-block (get-in results [:nodes :items]))]
(when-not (string/blank? input)
(or (db/get-page (string/trim input))
(or (db/get-page (string/trim (last (string/split input "/"))))
(some (fn [block]
(and
(:block/tags block)