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.
Merge pull request #113 from gchiu/patch-2

do-redirect expects an absolute url so create one