Аn error in the link formed

  • Posts: 241
  • Thank you received: 14
8 years 7 months ago #213438

-- 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":


Если ни чего не помогает, прочтите наконец инструкцию.
Опыт растет прямопропорционально количеству выведенного из строя оборудования.
Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 81598
  • Thank you received: 13081
  • MODERATOR
8 years 7 months ago #213449

Hi,

This look similar to the problem of this thread:
www.hikashop.com/support/forum/filters-s...tem-to-404-page.html
I would recommend to try the solution proposed there.

Please Log in or Create an account to join the conversation.

  • Posts: 241
  • Thank you received: 14
8 years 7 months ago #213466

Hi,

I re-downloaded HikaShop 2.5.0 ("com_hikashop_business_v2.5.0_2015-09-07_08-26-37"), and reinstall over the old. Everything works well.

Regards


Если ни чего не помогает, прочтите наконец инструкцию.
Опыт растет прямопропорционально количеству выведенного из строя оборудования.

Please Log in or Create an account to join the conversation.

Time to create page: 0.070 seconds
Powered by Kunena Forum