-- url of the page with the problem -- :
profitsistems.ru/index.php/search?search...%80&searchphrase=all
-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.3
-- PHP version -- : 5.4.30
Results generated with an error in the link.
canonical link is added to the string "/ search".
This string is only added to the product, and only if it has a canonical link.
It is clear to me that the file default_results.php displays variable already contains the string "search"
<a href="<?php echo JRoute::_($result->href); ?>"<?php if ($result->browsernav == 1) :?> target="_blank"<?php endif;?>>
hikashop_products.php file gets the canonical link in the table "product."
if(empty($row->product_canonical)){
$rows[$k]->href = 'index.php?option=com_hikashop&ctrl=product&task=show&name='.$row->alias.'&cid='.$row->id.$Itemid.$parent;
}else{
$rows[$k]->href = $row->product_canonical;
}
$rows[$k]->section = JText::_( 'PRODUCT' );
Question: Where reference is added to the canonical string "/ search"?
for example, my experiments - added a "1":