Skip Navigation

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

Problem:
If you're experiencing redirect errors in Google Search Console for translated URLs on your site, where the URLs include a language slug but redirect to an original page, this might be due to the content being recently translated.
Solution:
We recommend checking if you're using the fallback method where WPML displays the original content in secondary languages when the content is not yet translated. This could result in the slug not being translated. For more information, please refer to our documentation on Displaying Untranslated Content on Pages in Secondary Languages.

If this solution doesn't look relevant, please open a new support ticket in the WPML support forum.

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.

This topic contains 3 replies, has 2 voices.

Last updated by Andreas W. 1 year, 3 months ago.

Assisted by: Andreas W..

Author Posts
January 18, 2024 at 1:46 pm #15200159

nickF-8

Google Search Console flagged a bunch of translated URLs by WPML on my site which are causing redirect errors. If you look at the image attached, the first 2 URLs are good examples.

They are both for the Chinese page (you can tell from the zh-hans slug), but those pages are not actually the final destination. Those pages redirect to a page with Chinese characters in the URL. Take this link for example and you will see it redirects to the correct page:

hidden link

How can I stop these redirect pages from showing up? Is it linked to the show all posts option instead of show only translated posts? It is strange because the link is in fact translated and should only use the URL with Chinese characters. Any ideas?

Redirect Errors.png
January 20, 2024 at 2:23 am #15206769

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

I can not confirm such a link when investigating the REST API and also on the Google Index this post is listed with a correct link.

It is unclear to me, why Google is registering those redirects, but they could be linked to false entries on sitemaps or unexpected redirects that are forced by another plugin or an entry inside the .htaccess file.

Did review the sitemap and the .haccess file already?

Have you already tried to clear the cache of the site in all languages?

If my suggestions will not solve this issue, then please let me know and I will offer to have a closer look at the site.

Best regards
Andreas

January 20, 2024 at 1:41 pm #15207175

nickF-8

In the time between my post and your reply, I decided to put all the posts pages to SHOW TRANSLATED ONLY. Maybe that is why you cannot find the error anymore, it was due to showing untranslated content and the link it created caused the redirect?

January 20, 2024 at 1:47 pm #15207177

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

This can be very likely if the content just recently got translated.

When using the fallback method, WPML will display the original content in second languages and this is why the slug is not translated.

Documentation:
https://wpml.org/documentation/translating-your-contents/displaying-untranslated-content-on-pages-in-secondary-languages/

Best regards
Andreas