Taxonomy terms have a canonical path of /taxonomy/term/{taxonomy_term}
by default, which displays a View with content tagged with that term.
For certain taxonomies I would like to use a different view, dependent on the taxonomy bundle, so I can't just override the path entirely.
For example, "article" tags should link to /articles/{taxonomy_term}
, "product" tags to /products/{taxonomy_term}
.
My idea is to override the entity.taxonomy_term.canonical
route adding some kind of callback that generates the path dynamically based on the taxonomy_term. Is this possible?
entity.taxonomy_term.canonical
, nothing will happen - the View's route will win