getRoute(); if (!empty($route)) { $isUseCategoryUrl = Mage::helper('blog')->isCategoryUrl(); $category = Mage::getSingleton('blog/cat'); $post = Mage::getSingleton('blog/post'); $tag = $this->getRequest()->getParam('tag', false); if ($isUseCategoryUrl && $category->getCatId()) { $route .= '/' . AW_Blog_Helper_Data::CATEGORY_URI_PARAM . '/' . $category->getIdentifier(); } if ($post->getIdentifier()) { if ($isUseCategoryUrl && $category->getCatId()) { $route .= '/' . AW_Blog_Helper_Data::POST_URI_PARAM . '/' . $post->getIdentifier(); } else { $route .= '/' . $post->getIdentifier(); } } if ($tag) { $route .= '/' . AW_Blog_Helper_Data::TAG_URI_PARAM . '/' . $tag; } $routePath = $route; } return parent::getUrl($routePath, $routeParams); } }