'Internally called to make an alias redirect URL.'

def make_alias_redirect_url(self, path, endpoint, values, method, query_args):

    url = self.build(endpoint, values, method, append_unknown=False, force_external=True)
    if query_args:
        url += ('?' + self.encode_query_args(query_args))
    assert (url != path), 'detected    invalid    alias    setting.        No    canonical    URL    found'
    return url
