Incorrect SEF on the Products page of the Vendor control panel

  • Posts: 152
  • Thank you received: 11
11 months 3 weeks ago #351483

-- url of the page with the problem -- : hikashop.cloudaccess.host/
-- HikaShop version -- : 4.7.2
-- HikaMarket version -- : 4.1.1
-- Joomla version -- : 4.3.1
-- PHP version -- : 8.0.28
-- Browser(s) name and version -- : Chrome

When I click on the category, in the Products page, I get a url with /component
Even the breadcrumb is wrong



Attachments:

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

  • Posts: 26007
  • Thank you received: 4004
  • MODERATOR
11 months 2 weeks ago #351484

Hello,

For what I see in the code, the missing "ItemId" in the URL has been fixed on November 30th, before the HikaMarket 4.1.1 release.
Can you please check that you do not have a view override for the HikaMarket "productmarket / listing" view ?
If you don't have an override, you should find the corresponding line :

echo '<a href="'.hikamarket::completeLink('product&task=listing&cid='.$breadcrumb->category_id.$this->url_itemid).'">'.JText::_($breadcrumb->category_name).'</a>';
Where the variable "$this->url_itemid" contains the SEF information for the Joomla Router.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 152
  • Thank you received: 11
11 months 2 weeks ago #351495



Thanks for the attention :)

Attachments:
The following user(s) said Thank You: Jerome

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

  • Posts: 26007
  • Thank you received: 4004
  • MODERATOR
11 months 2 weeks ago #351525

Hello,

You can add the variable :

$this->url_itemid
to the string and it should work fine with the Joomla Router.
But please note that it could have some unwanted side effects with some SEF extensions.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 152
  • Thank you received: 11
11 months 2 weeks ago #351540

Thanks Jerome :)

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

Moderators: Obsidev
Time to create page: 0.085 seconds
Powered by Kunena Forum