def relative_to_full(url, example_url):
    if re.match('https?:\/\/', url):
        return url
    domain = get_domain(example_url)
    if domain:
        return '%s%s' % (domain, url)
    return url
Given a url which may or may not be a relative url, convert it to a full
dataset/ETHPy150Open worldcompany/djangoembed/oembed/utils.py/relative_to_full