Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 -
- 12:00 – 16:00 12:00 – 16:00 12:00 – 16:00 12:00 – 16:00 12:00 – 16:00 -

Supporter timezone: Europe/Zagreb (GMT+01:00)

This topic contains 7 replies, has 2 voices.

Last updated by Dražen Duvnjak 1 year, 9 months ago.

Assisted by: Dražen Duvnjak.

Author Posts
February 20, 2023 at 11:10 am #13068677

samanthaB-3

Tell us what you are trying to do?
I need to have Hreflang to non-canonical. I use Rankmath to remove category base however the references still refer to the non-canoncial. The helper plugin of Rankmath is installed

Is there any documentation that you are following?

Is there a similar example that we can see?
hidden link
hidden link

yes especially the category pages of woocommerce

What is the link to your site?
hidden link

hrlang.jpg
February 21, 2023 at 8:19 am #13076033

Dražen Duvnjak
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello,

Thanks for contacting us.

1) Can you please confirm I understand the issue correctly, you are expecting en and x-default to show without "product-category", correct?

2) Please disable WPML, and check the page source if there is some URL shown for Rank Math meta info?

3) Try to not translate product-category slug if you have done so.

- https://wpml.org/errata/rank-math-seo-turning-on-strip-category-base-causes-issues-with-secondary-languages/

Let me know how it goes.

Regards,
Drazen

February 21, 2023 at 9:19 am #13076535

samanthaB-3

HI,

Thanks for looking into this.

1) Yes

2) Meta info is all there when disabled.

3) Ok I see what is happening there. However, that is a bit of a seo nightmare. Will see the Pro's and Con's on that.

Is there an ETA on this issue as it has been open since 2021 we are 2023 now?

Regards

Sam

February 21, 2023 at 10:04 am #13077457

Dražen Duvnjak
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello Sam,

thanks for getting back.

The shared workaround should be efficient, as it says "The untranslated terms won’t be visible in the URL anyway when you use any those options."

In your case, the default language slug is still showing in the default language, so I am trying to see if it is related.

If you do not translate the slugs, since they won't be visible either way, does this help for your case?

Kind regards,
Drazen

February 22, 2023 at 12:43 pm #13088919

samanthaB-3

Hi

I did a test with category test but the result is the same see image.

Kind Regards

Sam

test.jpg
February 22, 2023 at 1:31 pm #13089461

Dražen Duvnjak
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello,

thanks for getting back.

I created a minimal installation of WordPress, WPML, and all necessary WPML add-ons.

You can access the WordPress dashboard using the link below:
- hidden link

Kindly follow the steps below:
- Set up WPML
- Install the necessary plugins.
- Try to replicate the issue in a simple example, without any additional plugins or themes
- Share with me step by step guide on how can I check the issue

This will help us to report the probable issue to the compatibility team and solve the possible problem faster.

Let me know.

Thanks,
Drazen

February 23, 2023 at 10:21 am #13096995

samanthaB-3

Hi
Thanks I will do this asap. Is there already an ETA for this issue as it has been open for a while.

Kind regards,

Sam

February 23, 2023 at 10:28 am #13097073

Dražen Duvnjak
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello,

thanks let me know when done and the steps you did.

I do not think it is related to the one I shared first, this looks like a new issue.

Regards,
Drazen

The topic ‘[Closed] Hreflang to non-canonical’ is closed to new replies.