def redirect(self, url):
        response = getattr(self.request, 'response', None)
        if response is None:
            response = HTTPFound(location=url)
        else:
            response = HTTPFound(location=url, headers=response.headers)
        return response
Return a response redirect to the given URL
dataset/ETHPy150Open omab/python-social-auth/social/strategies/pyramid_strategy.py/PyramidStrategy.redirect