Make the post-oauth login page more friendly for non-http redirects (e.g. redirects to mobile apps)