follow-link-under-cursor!: Add page to 'Recent' list

This fixes #3325
This commit is contained in:
Moritz Ulrich
2021-12-01 11:05:43 +01:00
committed by Tienson Qin
parent d9938421c0
commit 60d3f1f60e

View File

@@ -25,6 +25,7 @@
[frontend.handler.export :as export]
[frontend.handler.image :as image-handler]
[frontend.handler.notification :as notification]
[frontend.handler.recent :as recent-handler]
[frontend.handler.repeated :as repeated]
[frontend.handler.repo :as repo-handler]
[frontend.handler.route :as route-handler]
@@ -1286,6 +1287,7 @@
(let [page-name (string/lower-case page)]
(state/clear-edit!)
(insert-first-page-block-if-not-exists! page-name)
(recent-handler/add-page-to-recent! (state/get-current-repo) page-name)
(route-handler/redirect-to-page! page-name)))))
(defn open-link-in-sidebar!