Smart search result url wrong

  • Posts: 278
  • Thank you received: 14
  • Hikashop Business
2 months 1 week ago #359178

-- HikaShop version -- : 5.0.3
-- Joomla version -- : 4.4.2
-- PHP version -- : 8.2.15

Smart search configured. Menu item for search created. Hika smart search plugin activated. Canonical url created.
When you search for product, results url are like
domain.com/root-category/id-product-name/highlight-WyJkb2dvZGVrIl0=

No product has assigned to root-category.

So results url should be domain.com/product-category/id-product-name/highlight-WyJkb2dvZGVrIl0= (canonical url).

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

  • Posts: 81563
  • Thank you received: 13071
  • MODERATOR
2 months 1 week ago #359180

Hi,

It's not the "root category" you see in the URL, it's the alias of a menu item on your website taken randomly by the smart search plugin during the indexing so that the URLs can be valid.
And unfortunately, we can't use the canonical URL because Joomla requires us to provide the non SEFed URL when indexing the elements.

But I agree with you that it would be nice if the smart search plugin could automatically search for the menu item linked to the main category of the product in order to provide a nicer URL to the smart search system. We'll look at improving this for the next version of HikaShop. Thanks for your feedback.

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

  • Posts: 278
  • Thank you received: 14
  • Hikashop Business
2 months 1 week ago #359199

Thank you.
It realy is useless that way. Im working on new site and this is real deal breaker.
It is not problem in "nicer" url. The problem is that url should not exsist at all.
I hope you manage to solve this for next release.

The following user(s) said Thank You: nicolas

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

Time to create page: 0.056 seconds
Powered by Kunena Forum