Sef url not working one product out of two

  • Posts: 99
  • Thank you received: 0
7 years 2 weeks ago #290916

-- HikaShop version -- : 3.4.0
-- Joomla version -- : 3.8.6
-- PHP version -- : 7.1.7
-- Browser(s) name and version -- : CHROME
-- Error-message(debug-mod must be tuned on) -- : canonical sef url wrong every 2 products

Hello,

One product out of two is not showing the correct url in the backend > Products > Products > SEO > Canonical URL.
.../correct-alias/id-product...
.../component/hikashop/id-product...
.../correct-alias/id-product...
.../component/hikashop/id-product...
...

I have a HikaShop » Products listing with the correct alias as a Menu item.
For a page with the not correct canonical URL, if I replace "component/hikashop/" by the correct alias, the page is displaying correctly.

But the canonical URL still not showing the correct one 1 product out of 2 and I see the same problem when displaying the list via a different component (mymapslocation).
Can you please help me?

Best,

Last edit: 7 years 2 weeks ago by ChristopheMG. Reason: Correct a few words to try to make it more understandable, but same meaning

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

  • Posts: 26222
  • Thank you received: 4035
  • MODERATOR
7 years 2 weeks ago #290917

Hello,

The canonical URL is generated depending the setting you have set in your HikaShop configuration.
Please note that changing the setting do not reset the stored canonicals.

Now, without information of which elements you're talking about, what is the stored canonical and where you have the issue ; it will be difficult to give you a precise answer.
It can be a lot of things, including the one where a component is not using correctly the canonical
(cf : www.hikashop.com/forum/19-hikamarket/893...endor-page-urls.html )

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: 99
  • Thank you received: 0
7 years 1 week ago #291053

Hello,

In Hikashop > System > Features > Force canonical URLs on listings : Use canonical URL and generate it if missing.
Screenshot: Features SEF URL Options
Do you recommend another option ?

I recently observed that the issue was not showing only via mymapslocation but also in the products via the back-end > Hikashop > Products. This is why I created this topic.
Screenshot: Product canonical URL

And I have a menu "HikaShop » Products listing" with an alias, it works for every 1 product out of 2.

I hope we will find a solution,

Regards,

Last edit: 7 years 1 week ago by ChristopheMG.

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

  • Posts: 83603
  • Thank you received: 13533
  • MODERATOR
7 years 1 week ago #291106

Hi,

1. There is no "recommended" choice. It depends on what you want to do.

2. Once a canonical URL is set in a product, if you activate the "Force canonical URLs on listings" setting, that URL will be used by HikaShop. If you change something on your website which renders that canonical URL invalid, then the URL used on the listings will be invalid until either you empty the canonical URL or fix it.

3. Even if you deactivate the "Force canonical URLs on listings" setting, you need to have valid canonical URLs or it will hamper your SEO efforts. It's better to not have a canonical URL, than having a wrong one.

So regarding "solutions", I have many but it depends what you want...
You could fix the canonical URLs of the products that have a wrong one manually
You could empty the canonical URLs
You could just turn off the "Force canonical URLs on listings" setting, but it will be less good for your SEO

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

Time to create page: 0.060 seconds
Powered by Kunena Forum