mirror of
https://github.com/logseq/logseq.git
synced 2026-05-05 11:26:26 +00:00
enhance: redirect to all pages when no default page in publishing mode
This commit is contained in:
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user