Use URI#merge to properly resolve redirects