Fix redirection setup if heroku