Stop Duplicate URLs

  • Posts: 260
  • Thank you received: 25
11 years 11 months ago #79340

Hi all,

I am trying to work out how to avoid duplicate URLs (Non-SEF) - I am using Hika Business, Joomla 2.5 and SH404sef

EG:
For this SEF URL - bourke-darling-river.html

it has these two:
index.php?option=com_hikashop&Itemid=242&cid=260&ctrl=product&lang=en&name=darling-river-bourke-1&task=show
index.php?option=com_hikashop&Itemid=242&category_pathway=21&cid=260&ctrl=product&lang=en&name=darling-river-bourke-1&task=show

Any ideas why and how to prevent it


Don't look at what is and ask 'why?'; look at what isn't and ask 'Why Not!'

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

  • Posts: 13201
  • Thank you received: 2322
11 years 11 months ago #79384

Hi,

The category_pathway is added in the url when you display the product page from a menu or module, it create a path useful for the detailed breadcrumb.
To remove it, you can edit the view of the product listing, generally "product / listing_img_title" and remove ".$this->category_pathway" for the $link var.

$link = hikashop_completeLink('product&task=show&cid='.$row->product_id.'&name='.$row->alias.$this->itemid.$this->category_pathway);
>>>>>>>
$link = hikashop_completeLink('product&task=show&cid='.$row->product_id.'&name='.$row->alias.$this->itemid);

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

  • Posts: 260
  • Thank you received: 25
11 years 11 months ago #79535

Hi Xavier,

thanks for that..

Appreciate the prompt reply (as always from Hikashop)


Don't look at what is and ask 'why?'; look at what isn't and ask 'Why Not!'

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

Time to create page: 0.070 seconds
Powered by Kunena Forum