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; }
/** * @param Mana_Seo_Model_ParsedUrl $token * @return bool */ public function setPage($token) { parent::setPage($token); $token->addParameter('page_id', $token->getPageUrl()->getCmsPageId()); return true; }
/** * @param Mana_Seo_Model_ParsedUrl $token * @return bool */ public function setPage($token) { parent::setPage($token); $token->setIsRedirectToSubcategoryPossible(true)->addParameter('id', $token->getPageUrl()->getCategoryId()); return true; }