Beispiel #1
0
 protected function _redirectToSubcategory(&$seoParams)
 {
     if ($this->_schema->getRedirectToSubcategory() && isset($seoParams['cat'])) {
         if (in_array($this->_routePath, array('catalog/category/view', 'cms/index/index'))) {
             $this->_routePath = 'catalog/category/view';
             $this->_routeParams['id'] = $seoParams['cat']['category_id'];
             $this->_pageType = $this->_getPageType($this->_routePath);
             $this->_suffix = $this->_pageType->getCurrentSuffix();
             $this->_pageUrlKey = $this->_pageType->getUrlKey($this);
             unset($seoParams['cat']);
         }
     }
     return $this;
 }