Set a flag to avoid redirecting onto intself