Steps
-
add a relationship to the field containing the taxonomy term
-
add a contextual filter that filters by the name of the taxonomy term referenced in the added relationship
-
consider adding a taxonomy term name validation as well
-
Notes
It's not currently possible to add a contextual filter based on the term name without a relationship, however, you can add a contextual filter directly (without the need of a relationship) on the taxonomy vocabulary machine name if you are listing taxonomy terms.
- Watch out for duplication of rows. This may create a need to enable aggregation depending on the rest of the view setup.
- Found while taking the Drupal 10 Backend Specialist certification exam from Acquia.