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.

Our next available supporter will start replying to tickets in about 3.89 hours from now. Thank you for your understanding.

This topic contains 1 reply, has 2 voices.

Last updated by Itamar 1 year, 6 months ago.

Author Posts
October 23, 2022 at 9:48 am #12294793

zolM

Hello there,

I'm trying to SEO-optimize the site. When checking the Hreflang I see there is an issue. My site URL and Canonical end in /

But the halfling doesn't. Could you please let me know where I can correct this?

Thank you for your help.
Best
Zol

Screenshot 2022-10-23 at 11.45.49.png
Screenshot 2022-10-23 at 11.43.11.png
October 23, 2022 at 4:22 pm #12295731

Itamar
Supporter

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

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

Hi, Zol.

Before your ticket is assigned to one of my colleagues, please allow me to walk you through some initial debugging steps. This will help speed up the support process.

In this respect, WPML follows WordPress standards. Therefore if WordPress does not add a trailing slash to the URL of the homepage of your site, then WPML follows the same and does not add a trailing slash to the URL. You can read about it at the following link to an errata page we published regarding this issue.

https://wpml.org/errata/changes-in-the-way-wpml-handles-the-trailing-slashes-in-url-conversion/

I've checked this issue on my test site and see the same behavior. For the hreflang tag, there is no trailing slash. It collaborates with what I can see when I go to Settings -> General -> Site Address (URL). Please also check this on your site; I believe you will find the same.

WPML is not adding the canonical tag. Therefore, we can not be responsible for whether there is a trailing slash or not in this tag.

Saying all this, I might not be aware of a problem with missing trailing slashes (I'm not an SEO expert). If you have any information you can add to us on why missing trailing slash can cause SEO problems, please send it to us.

Regards,
Itamar.

The topic ‘[Closed] wrong hreflang’ is closed to new replies.