def get_redirect_uri(self, state=None):
    'Build redirect with redirect_state parameter.'
    regex = re.compile('\\:(80|443)\\/')
    uri = regex.sub('/', self.redirect_uri)
    if (self.REDIRECT_STATE and state):
        uri = url_add_parameters(uri, {'redirect_state': state})
    return uri
Build redirect with redirect_state parameter.
def get_redirect_uri(self, state=None):
    
    regex = re.compile('\\:(80|443)\\/')
    uri = regex.sub('/', self.redirect_uri)
    if (self.REDIRECT_STATE and state):
        uri = url_add_parameters(uri, {'redirect_state': state})
    return uri