Route only when necessary so session variables are not reset