Fix redirection for any 3xx code