enhance: redirect to all pages when no default page in publishing mode

This commit is contained in:
Tienson Qin
2021-03-17 00:01:35 +08:00
parent 5a3cc38cf2
commit e3edb55fde

View File

@@ -185,6 +185,11 @@
(route-handler/redirect! {:to :page
:path-params {:name (:page default-home)}})
(and config/publishing?
(not default-home)
(empty? latest-journals))
(route-handler/redirect! {:to :all-pages})
importing-to-db?
(ui/loading (t :parsing-files))