@register.filter
def absolutify(url, site=None):
    if url.startswith('http'):
        return url
    else:
        return urljoin(site or settings.SITE_URL, url)
Do temporary redirect.
dataset/ETHPy150Open mozilla/addons-server/src/olympia/amo/helpers.py/absolutify--crossover with--dataset/ETHPy150Open michaelliao/transwarp/transwarp/web.py/seeother