Question about SEF URLs

  • Posts: 82
  • Thank you received: 1
10 years 10 months ago #177881

-- HikaShop version -- : business 2.3.4
-- Joomla version -- : 3.3.6

Hello,

I have 4 custom links inside my product page template. The links are to 4 products listing accessories categories. I already have menu items for these 4 pages, which they have their nice working SEF URL, like: www. site.com/categorylisting

The link code in my template is :

<a href="<?php echo JRoute::_('index.php?option=com_hikashop&view=product&layout=listing&Itemid=1149'); ?>"></a>
but the SEF URL that is generated with this is: www. site.com/categorylisting/product/listing

Is it possible to have this link same as the main link when clicked from the menu item ?
I think somewhere I have found that Hika is calling another method for creating its URL and not the JRoute... I remember right?

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

  • Posts: 84303
  • Thank you received: 13698
  • MODERATOR
10 years 10 months ago #177884

Hi,

You should use that code:

<a href="<?php echo JRoute::_('index.php?option=com_hikashop&Itemid=1149'); ?>"></a>
Our even:
<a href="/categorylisting"></a>

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

  • Posts: 82
  • Thank you received: 1
10 years 10 months ago #178145

This worked - thanks

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

Time to create page: 0.058 seconds
Powered by Kunena Forum