Manufacture link is wrong

  • Posts: 359
  • Thank you received: 24
  • Hikaserial Standard Hikashop Business
3 years 5 months ago #335739

-- url of the page with the problem -- : new.stanleyseeds.dk/drenge/t-shirts/p/t-shirt-2210102-brun
-- HikaShop version -- : 4.4.3
-- Joomla version -- : 3.10.2
-- PHP version -- : 7.4

Hi

I have this item:
new.stanleyseeds.dk/drenge/t-shirts/p/t-shirt-2210102-brun

A t-shirt in the category DRENGE, with a brand/manufacture named HOUND DRENGE.
HOUND DRENGE has it's own menu:
new.stanleyseeds.dk/drenge/hound-drenge

But the link on the manufacture on new.stanleyseeds.dk/drenge/t-shirts/p/t-shirt-2210102-brun is
new.stanleyseeds.dk/piger/hound-drenge where it should be:
new.stanleyseeds.dk/drenge/hound-drenge

Is this a bug?

Regards
Thomas

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

  • Posts: 83402
  • Thank you received: 13496
  • MODERATOR
3 years 5 months ago #335741

Hi,

It's not a bug. It's just that there is no mechanism to search through the menu items you created to see if there is one using that brand as main category to use it.
Usually merchants don't create a menu item for each brand so we didn't add the code to do that search. First, it takes time for us to work on that, then, it wouldn't be much used, and finally, it adds processing and an extra MySQL query while most merchants won't need it.

Now if you want to use the same link, you can enter the main URL of your brand in its "canonical URL" setting.
Then, make sure that the "force canonical URL on listings" setting of the HikaShop configuration is set to "Use canonical URL if specified" and the system will use that URL on the product page instead of generating one dynamically.

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

  • Posts: 359
  • Thank you received: 24
  • Hikaserial Standard Hikashop Business
3 years 5 months ago #335751

This will do just fine!
I got the result I need, thanks!

Will the "Use canonical URL if specified" affect anything else that I should be aware of?

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

  • Posts: 83402
  • Thank you received: 13496
  • MODERATOR
3 years 5 months ago #335755

Hi,

As long as you don't fill a canonical URL, the shop will work as if that setting was turned off. So no worries.
In fact, it's highly likely it will even improve your SEO if your specify the canonical URL of your products / categories / brands.
The biggest issue is maintenance. The day you change your menu items structure / aliases / etc in the Joomla manager, the links in the canonical URL fields might not be valid anymore and thus would have to be updated in order to not end up with 404 errors since they would be pointing to menu items that Joomla's routing system can't find anymore.

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

  • Posts: 359
  • Thank you received: 24
  • Hikaserial Standard Hikashop Business
3 years 5 months ago #335773

Thank you for making that clear - will remember that! :-)

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

Time to create page: 0.056 seconds
Powered by Kunena Forum