Correctly get base Uri for relative Uris during redirects