Taxonomy term route name? I am trying to make a custom taxonomy breadcrumbs based the code from this question:
Drupal 8 How to do a custom taxonomy breadcrumb?

This line adds a new breadcrumb for the home page:

$breadcrumb-&gt;addLink(Link::createFromRoute(t('Home'), 'front'));


PS: I removed parenthesis from front to display line here.

I want to add another breadcrumb with the text of the name of a taxonomy term and the URL of the same term:

$breadcrumb-&gt;addLink(Link::createFromRoute(t($term-&gt;getName()), $url));


I cannot figure out how to replace "front" with the route name of the $term object.
Since taxonomy terms are entities, you can simply do this:

$link = $term-&gt;toLink();
$breadcrumb-&gt;addLink($link);


As a side-note, the route name for taxonomy terms is "entity.taxonomy_term.canonical".