Export absolute_url from redirect_middleware; add some rare cases to absolute_url