class Aws::S3::Plugins::ARN

def url_path(path, arn)

Remove ARN from the path because we've already set the new host
def url_path(path, arn)
  path = path.sub("/#{Seahorse::Util.uri_escape(arn.to_s)}", '')
             .sub("/#{arn}", '')
  "/#{path}" unless path =~ /^\//
  path
end