Hello, unfortunatly the issue, after a new re-indexing is still present.
GSC list pages like the one below as with redirection: hidden link
infact this url is redirected to the ITA version: hidden link
But in the "category translation" settings, the category should be translated as "reportage" and ""events" therefore the first url should be correct.
There apparently be an issue wiht WPML settings, were I cannot set correctly the taxonomy of the few CATEGORIES present in this website.
As you can see in the attached screenshot, slugs are added with the "-en" at the end of each catergory but this shoudn't be done, is should just translate the category as in the link pasted above. but the page is not created therefore it does not exist.
I try to copy the Italian setting but when saving it reverts to category-en format-.
In the "Language URL format" tab is set as you can see on the attached image, is this correct?
At the end the issue is sitll there, lot of confusion.
It would be helpful if could go thorugh the settings of WPML and see what is generating this general issue throughout the website.
If you take a look at the html sitemap, it appears clear that the SLUG of the english version of the pages is not correctly translated, just the name of the page but not the other parts of the SLUG.
See attached image and look at the html sitemap for details.
Why the slug is not translated ? hidden link
1. The URL (1) hidden link
can be accessed directly, with no redirection. I can see it on my end and check with this tool hidden link
2. When using the language switcher to switch between languages, I see the URL is correct:
ITA (2): hidden link
ENG (3): hidden link
Please see the attached screenshots. I don't know where you get the URL (1), maybe from GSC, but WPML generates the correct URLs (2, 3) if you use the language switcher.
I suggest you go to WPML > Settings > Post Types Translation and Taxonomy Translation, set the post, taxonomy translation preference to "Translatable - Only show translated items" > Re-save permalink settings and recheck this issue.
I try to copy the Italian setting but when saving it reverts to category-en format-.
You can translate the page/post slug by going to WPML > Settings > Translated documents options > Page URL: Translate. Then edit the page > Update > Update the translation and translate the slug in Advanced Translation Editor.
Also, I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. Your next reply is set to private to share the info.
❌ IMPORTANT: Please backup your database and website before proceeding ❌
You can use this plugin to create the backup: https://wordpress.org/plugins/duplicator/
I test the issue with category translation URL on a clean installation of WordPress and see the same behavior. If you type the translation category slug into the URL, you can view the post properly. But there are two important points:
- It's not a valid URL generated by WordPress or WPML, just type the URL manually in the browser.
- The URL isn't redirected.
So, let's focus on the redirection report of GSC. I suggest you contact GSC support and ask them why they see the redirection on the URL and where they see that hidden link
Hi Long,
I would like to show you a clear issue that is affecting several pages, now iun a more clear way hoping that you find the reason.
This page is listed as redirected (see attached image 01): hidden link
Click "check url", and this is the result (see attached image 02)
The page is NOT FOUND but actually it exist.
The page is not indexed. page with redirect
Also, the report shows a canonical url in english and not in italian as it should be, why?
If you click "check url" below the eng url the page is of course regularly found. (see attached image 03)
Looks like there is wrong url associated with some ita pages, by whom? WPML, RankMath?
Most important, are the settings of the page in WP (see attached image 04)
where the canonical url is correct.
This is a situation that occurs on several images as you can see in the GSC redirect list.
All redirected listed pages are showing the english canonical url instead of the correct italian one even if in WP the canonical url is correct.
Last question, in case I should, where can I get in touch/contact the GSC support?
Thank you very miuch for your support again.
Again, I check the redirection with the tool hidden link and don't see the redirection. And the canonical URL in the HTML structure points to the correct one. Please see the attached screenshot.
If you need help from GSC support, please check this link hidden link
You can double-check the redirection manually on your own, with some real devices and some tools as I suggested, not just rely on the GSC report.
Thank you Long for your patience and support.
I will dive deeper in the problem hoping that it get solved, at this point I assume that RankMath is still doing something wrong as well as GSC .
Thank you.
In case, as written before, is it possible to get in touch privatly for further support in other issues? what aree your webdev specialities?
Please read more about our support policy here https://wpml.org/purchase/support-policy/
If you want to support further beyond the scope or something customization, I would recommend you contact one of our certified partners who will be more than happy to help you with this. In this link, you will find a list of our certified partners: https://wpml.org/contractors/
Thanks.
The topic ‘[Closed] canonical url added by WP;ML cuasing redirects issue?’ is closed to new replies.