diff --git a/core/modules/taxonomy/src/TermBreadcrumbBuilder.php b/core/modules/taxonomy/src/TermBreadcrumbBuilder.php index 4f8d73b..7e4e510 100644 --- a/core/modules/taxonomy/src/TermBreadcrumbBuilder.php +++ b/core/modules/taxonomy/src/TermBreadcrumbBuilder.php @@ -70,7 +70,8 @@ public function build(RouteMatchInterface $route_match) { 'entity.taxonomy_term.delete_form', ))) { $term = $this->entityManager->getTranslationFromContext($term); - $breadcrumb[] = Link::createFromRoute($term->getName(), $route_match->getRouteName(), array('taxonomy_term' => $term->id())); + + $breadcrumb[] = Link::createFromRoute($term->getName(), 'entity.taxonomy_term.canonical', array('taxonomy_term' => $term->id())); } else { while ($parents = $this->termStorage->loadParents($term->id())) { diff --git a/core/modules/taxonomy/src/Tests/TermTest.php b/core/modules/taxonomy/src/Tests/TermTest.php index 45d963d..ae62b08 100644 --- a/core/modules/taxonomy/src/Tests/TermTest.php +++ b/core/modules/taxonomy/src/Tests/TermTest.php @@ -10,7 +10,6 @@ use Drupal\Component\Utility\Tags; use Drupal\Component\Utility\Unicode; use Drupal\Core\Field\FieldStorageDefinitionInterface; -use Drupal\Core\Url; use Drupal\field\Entity\FieldConfig; use Drupal\taxonomy\Entity\Term; use Drupal\taxonomy\Entity\Vocabulary;