Recursive adding the user agent to redirects