Enhance/plugins apis (#10127)

* enhance(api): add page to recent for route api

* enhance(api): support open block in right sidebar with entity id
This commit is contained in:
Charlie
2023-09-06 22:49:18 +08:00
committed by GitHub
parent 12642f5777
commit 331afbc04f
4 changed files with 27 additions and 15 deletions

View File

@@ -77,11 +77,13 @@
(recent-handler/add-page-to-recent! (state/get-current-repo) page-name
click-from-recent?)
(let [m (cond->
(default-page-route page-name)
(default-page-route page-name)
anchor
(assoc :query-params {:anchor anchor})
push
(assoc :push push))]
(boolean? push)
(assoc :push push))]
(redirect! m)))))
(defn redirect-to-whiteboard!