Avoid a redirect loop when the request URL is not normalized