fixing esr redirects