fix: alias is not considered in some situations

This commit is contained in:
Junyi Du
2021-12-20 14:06:52 +08:00
committed by Tienson Qin
parent 7024e9b4c3
commit 22dc065bb8
3 changed files with 16 additions and 14 deletions

View File

@@ -36,6 +36,7 @@
(redirect! {:to :graph}))
(defn redirect-to-page!
"Must ensure `page-name` is dereferenced (not an alias), or it will create a wrong new page with that name (#3511)."
([page-name]
(recent-handler/add-page-to-recent! (state/get-current-repo) page-name)
(redirect! {:to :page