Issue #1041906 by Monochrome, bobodrone, ELC, ctibor, DamienMcKenna: Fixed Taxonomy term menu link title overrides term page title.
parent
ecfdad822b
commit
826ae5ac4e
|
@ -1345,8 +1345,7 @@ class MenuBreadcrumbTestCase extends MenuWebTestCase {
|
|||
$tree += array(
|
||||
$link['link_path'] => $link['link_title'],
|
||||
);
|
||||
// @todo Normally, you'd expect $term->name as page title here.
|
||||
$this->assertBreadcrumb($link['link_path'], $trail, $link['link_title'], $tree);
|
||||
$this->assertBreadcrumb($link['link_path'], $trail, $term->name, $tree);
|
||||
$this->assertRaw(check_plain($parent->title), 'Tagged node found.');
|
||||
|
||||
// Additionally make sure that this link appears only once; i.e., the
|
||||
|
|
|
@ -14,6 +14,9 @@
|
|||
* The page content.
|
||||
*/
|
||||
function taxonomy_term_page($term) {
|
||||
// Assign the term name as the page title.
|
||||
drupal_set_title($term->name);
|
||||
|
||||
// Build breadcrumb based on the hierarchy of the term.
|
||||
$current = (object) array(
|
||||
'tid' => $term->tid,
|
||||
|
|
Loading…
Reference in New Issue