SEF Routing when i use a brand category

  • Posts: 103
  • Thank you received: 5
5 years 3 months ago #302092

-- HikaShop version -- : 4.0.1
-- Joomla version -- : 3.9.1
-- PHP version -- : 7.2

My Webshop should have finally this URL settings:

root/shop

root/shop/product/sampleproduct01
root/shop/product/sampleproduct02
...
root/shop/brands
root/shop/brands/samplebrand01
root/shop/brands/samplebrand02
...

what i have noticed and i have to change is this following problem:
if i browse to the "Brands" menu and click to one brand the result is like this:
root/shop/brands/category/samplebrand02
now i click on one product from the choose brand, i get this url what makes no sense:
root/shop/brands/product/sampleproduct02
because the URL should be like this:
root/shop/product/sampleproduct02
what can i do to get this result?

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

  • Posts: 81511
  • Thank you received: 13065
  • MODERATOR
5 years 3 months ago #302101

Hi,

You'll want to change the "category SEF name" setting of the HikaShop configuration to an empty input.
And you'll want to set the URL /shop/product/sampleproduct02 in the "canonical URL" setting of the product (and the same for each product) with the "force canonical URLs on listings" setting of the HikaShop configuration set to "Use canonical if specified"
That should give you the result you want.

The following user(s) said Thank You: n00bster

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

  • Posts: 103
  • Thank you received: 5
5 years 3 months ago #302102

i noticed that it is not possible to set for both, category and product SEF, a empty input. why?
i ask because i have seen in someones post (screenshot) here in the forum that he had both empty...

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

  • Posts: 81511
  • Thank you received: 13065
  • MODERATOR
5 years 3 months ago #302107

Hi,

Because of the way the routing is done, it would be difficult to distinguish between products and categories when routing the URLs coming in.
Having both empty won't work. If you see someone who did that, he must have contacted us because it didn't work properly and later on, we added a check to prevent people from emptying both in order to avoid the problem he had.

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

Time to create page: 0.060 seconds
Powered by Kunena Forum