Redirect to the correct location after oauth.