feat: generalize the redirections to the concept of triggers