Redirect to proper page based on current task presence