change how the override of the xhr works in the reflectRedirectedUrl