protected function getRedirectToListAppend() { $app = JFactory::getApplication(); $tmpl = JFactory::getApplication()->input->get('tmpl'); $append = ''; // Setup redirect info. if ($tmpl) { $append .= '&tmpl=' . $tmpl; } $needles = array('myitems' => array(0), 'items' => array(0)); if ($item = DJCatalogHelperRoute::_findItem($needles)) { $append .= '&Itemid=' . $item; } return $append; }