diff --git a/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/TermTest.php b/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/TermTest.php index b9b1108..059eea5 100644 --- a/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/TermTest.php +++ b/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/TermTest.php @@ -323,6 +323,10 @@ function testTermInterface() { $this->assertText($edit['name'], 'The randomly generated term name is present.'); $this->assertLink(t('edit')); + // Check the term link can be clicked through to the term page. + $this->clickLink($edit['name']); + $this->assertResponse(200, 'Term page can be accessessed via the listing link.'); + // View the term and check that it is correct. $this->drupalGet('taxonomy/term/' . $term->id()); $this->assertText($edit['name'], 'The randomly generated term name is present.'); diff --git a/core/modules/taxonomy/taxonomy.admin.inc b/core/modules/taxonomy/taxonomy.admin.inc index 0703071..5ca2345 100644 --- a/core/modules/taxonomy/taxonomy.admin.inc +++ b/core/modules/taxonomy/taxonomy.admin.inc @@ -245,7 +245,7 @@ function taxonomy_overview_terms($form, &$form_state, Vocabulary $vocabulary) { '#prefix' => isset($term->depth->value) && $term->depth->value > 0 ? theme('indentation', array('size' => $term->depth->value)) : '', '#type' => 'link', '#title' => $term->label(), - '#href' => "taxonomy/term/$term->id()", + '#href' => "taxonomy/term/" . $term->id(), ); if ($vocabulary->hierarchy != TAXONOMY_HIERARCHY_MULTIPLE && count($tree) > 1) { $parent_fields = TRUE;