fix redirection

Make sure we really follow redirections