Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
If you're experiencing issues with incorrect canonical URLs for secondary WooCommerce categories in a multilingual setup, you might find that the canonical URL does not point to the intended language version of the category.
Solution:
We recommend enabling the option

Adjust IDs for multilingual functionality

found under WPML -> Languages -> Make themes work multilingual. This adjustment has proven effective in ensuring that the canonical URLs correctly reflect the language-specific category pages.

If this solution does not apply to your case, or if it seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. Should these steps not resolve your issue, please do not hesitate to open a new support ticket at WPML support forum for further assistance.

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Tagged: 

This topic contains 6 replies, has 0 voices.

Last updated by jaapd-2 2 weeks, 5 days ago.

Assisted by: Itamar.

Author Posts
November 25, 2024 at 10:02 am #16438778

jaapd-2

Background of the issue:
I am trying to fix the canonical URL for a secondary WooCommerce category on my site hidden link. The correct canonical is filled in the SEO section of the category.

Symptoms:
The canonical URL for hidden link is showing incorrectly as .

Questions:
How can I fix the incorrect canonical URL for the secondary WooCommerce category?

November 25, 2024 at 12:38 pm #16439753

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi,

You wrote: "The canonical URL for hidden link is showing incorrectly as ."

I think I'm missing something here. Maybe something from your post got removed.
What shows incorrectly?

When I check this page hidden link, I see the canonical link like this, hidden link. Please see the attached screenshot. This points to the original product in Dutch, your site's default language. So, it looks fine to me.

Am I missing something?

Regards,
Itamar.

2024-11-25_14-32-50.jpg
November 25, 2024 at 12:47 pm #16439794

jaapd-2

Hi Itamar,

See the screenrecording. hidden link

The English canonical has been set to hidden link? but when visiting the category page in English it shows the NL canonical. It should be the EN one.

Hope this clarifies the issue.

Cheers,
Jaap

November 26, 2024 at 5:20 pm #16446465

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi Jaap, and thanks a lot for the video!

I'm not an SEO expert, but in my mind, the translated English and German category pages should point to the original Dutch category page. In practice, this is what happens, so I think the outcome is the correct one.

Can you please explain why you expect to see the English category page points to itself?

Did you insert this link in the Yoast settings?

Regards,
Itamar.

November 28, 2024 at 8:25 am #16453417

jaapd-2

Hi Itamar,

I got this issue from the marketing company who does SEO for my customer. They have inserted canonical link in Yoast settings for the English page.

Can you verify with your colleagues? Marketing company says the EN version should have the EN canonical.

Cheers,
Jaap

November 28, 2024 at 6:31 pm #16456666

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi,

I've used the access details from the other ticket to check things on your site.

I'm consulting our second-tier supporters about this case and will update you here once I have news about it.

I appreciate your patience.
Itamar.

December 2, 2024 at 9:49 pm #16468611

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi,

We enabled the option "Adjust IDs for multilingual functionality" in WPML -> Languages -> Make themes work multilingual, which solved the problem. Now the canonical link is:
hidden link
Please see the attached screenshots.

Please confirm that this issue is solved now.

Thanks,
Itamar.

Screenshot 2024-12-02 at 11.42.24.png
2024-12-02_23-42-56.jpg
December 3, 2024 at 8:34 am #16470037

jaapd-2

Thanks for the solution!