maintenance fix

fixed a redirection bug when not logged in