diff --git a/components/com_tags/views/tag/view.html.php b/components/com_tags/views/tag/view.html.php index a1a08487354e6..973ea6abcb9a0 100644 --- a/components/com_tags/views/tag/view.html.php +++ b/components/com_tags/views/tag/view.html.php @@ -206,7 +206,12 @@ protected function _prepareDocument() // we need to get it from the menu item itself $menu = $menus->getActive(); - if ($menu) + if ($this->tags_title) + { + $this->params->def('page_heading', $this->tags_title); + $title = $this->tags_title; + } + elseif ($menu) { $this->params->def('page_heading', $this->params->get('page_title', $menu->title)); $title = $this->params->get('page_title', $menu->title); @@ -216,11 +221,6 @@ protected function _prepareDocument() $this->params->set('page_subheading', $menu->title); } } - else - { - $this->params->def('page_heading', $this->tags_title); - $title = $this->tags_title; - } if (empty($title)) {