do-redirect expects an absolute url so create one

if do-redirect gets a relative url, it is unable to decode it correctly and so all relative url redirects fail.