diff --git a/src/cljs/commiteth/core.cljs b/src/cljs/commiteth/core.cljs index 55f799d..e9709c2 100644 --- a/src/cljs/commiteth/core.cljs +++ b/src/cljs/commiteth/core.cljs @@ -145,8 +145,11 @@ (secretary/defroute "/" [] (rf/dispatch [:set-active-page :issues])) + (secretary/defroute "/manage" [] - (rf/dispatch [:set-active-page :manage])) + (if js/user + (rf/dispatch [:set-active-page :manage]) + (secretary/dispatch! "/"))) ;; ------------------------- ;; History