make homepage redirection optionnal