It's located in Mage_Catalog_Block_Breadcrumbs
.
This isn't the most obvious location but kind of makes sense as the breadcrumbs are displayed in a similar manner.
Of course, you can restrict your review pages from indexation. That can be done by removing links to this page and moving the reviews list to the main product pages. This is the way most of users who have a custom theme choose.
However, a better alternative to this 'standard' solution would be changing meta descriptions and meta titles for your reviews page.
Just copy this: /app/code/core/Mage/Page/Block/Html/Head.php
to: /app/code/local/Mage/Page/Block/Html/Head.php
and modify (the example for meta titles and meta description will be the same):
from:
public function getTitle()
{
if (empty($this->_data['title'])) {
$this->_data['title'] = $this->getDefaultTitle();
}
return htmlspecialchars(html_entity_decode(trim($this->_data['title']), ENT_QUOTES, 'UTF-8'));
}
to
public function getTitle()
{
if (empty($this->_data['title'])) {
$this->_data['title'] = $this->getDefaultTitle();
}
///Added 'Review for' for title
if ($this->_getCurrentFullActionName() == 'review_product_list') {
$this->_data['title'] = $this->__('Reviews for') . ' ' . $this->_data['title'];
}
///
return htmlspecialchars(html_entity_decode(trim($this->_data['title']), ENT_QUOTES, 'UTF-8'));
}
protected function _getCurrentFullActionName()
{
$controller = Mage::app()->getFrontController();
if(is_object($controller) && is_callable(array($controller, 'getAction'))){
$action = $controller->getAction();
if(is_object($action) && is_callable(array($action, 'getFullActionName'))){
$actionName = $action->getFullActionName();
if($actionName) return $actionName;
}
}
return null;
}
This and other problems, for example, not friendly URLs for review pages or duplicate content in different categories:
http://clients-sherodesigns.com/newstore/review/product/list/id/456/category/17/
http://clients-sherodesigns.com/newstore/review/product/list/id/456/
can be solved by using MageWorx SEO Suite Ultimate - the software will correct all the issues with URLs and duplicate content:
http://clients-sherodesigns.com/newstore/khaki-bowery-chino-pants/reviews
Best Answer
Here is a simple script that updates the meta title for one product in one store view based on the SKU. You can create a CSV file or any other parsable format and use this script in a loop to update your meta titles
Setting
0
(zero) for$storeId
means that the default values will be updated.