Attempt to make heroku like authentication_redirect