This thread is resolved. Here is a description of the problem and solution.
Problem:
Hi, I did a scan with the "Website Auditor" of the SEO PowerSuite and it gives me back 274 errors under "Localization" ---> "Missing Return Links".
The issue is that non-canonical paginated URLs have the "hreflangs" instructions in the code while there should be none in case the canonical URL of the page is different.
Solution:
In the end, the issue seems to be related to an Elementor module not compatible with Yoast.
This is from the Yoast Support team:
"Yoast SEO utilizes the built-in WordPress core functions to recognize pagination. The blog page on your site uses an Elementor module to add pagination to the blog page instead of using the WordPress core static blog page. For Yoast SEO to detect pagination on a non-static blog page, a manual page break must be included in the content."
0% of people find this useful.
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 7 replies, has 2 voices.
Last updated by nicholasT-12 4 years, 6 months ago.
Assisted by: Dražen Duvnjak.
Author | Posts |
---|---|
May 22, 2020 at 12:59 pm #6195657 | |
nicholasT-12 |
Tell us what you are trying to do? Hi, I did a scan with the "Website Auditor" of the SEO PowerSuite and it gives me back 274 errors under "Localization" ---> "Missing Return Links". This is a video explanation of what I see in Website Auditor, so that you can have a better idea: hidden link After that, I contacted the SEO PowerSuite support and they gave me back a detailed explanation of the issue that I forward here: "I have examined your project, and I can see that the issue is that non-canonical paginated URLs have the "hreflangs" instructions in the code while there should be none in case the canonical URL of the page is different." (see also the screenshot attached). How can we fix it? Thanks, Nicholas What is the link to your site? hidden link |
May 23, 2020 at 1:16 pm #6201101 | |
Dražen Duvnjak Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+01:00) |
Hello, thanks for sharing information and video, it is very helpful. It happens because the URL that actually gives the error is not an actual page, it still the same page but for example pages-2 was added to URL, so it can load blog posts from blog elements from page 2. In page source you shared you can see the canonical URL is still /blog/ while actual URL loaded is /blog/4/. Thus hreflangs are not correct. I think this is the problem since the canonical URL is wrong. Furthermore, the rel="canonical", rel="prev", and rel="next" are not being set by WPML. You can read a detailed explanation about it here. Can you please do the next testing scenarios: 1) Disable all WPML plugins and check page source (CTRL+U) and canonical URL for blog page 2 2) Disable all other plugins except for WPML plugins, Yoast and Elementor 3) Create a new page and add Elementor default blog element Please let me know how it goes. Thanks and regards, |
May 23, 2020 at 2:33 pm #6201363 | |
nicholasT-12 |
Hi Drazen, Thanks for your reply. I wish to try these scenarios, but I'm not expert and I'm worried to change some things by disabling plugins. I never do it yet. Is it a safe process? Do you have any reccomendation? |
May 26, 2020 at 6:31 am #6215719 | |
Dražen Duvnjak Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+01:00) |
Hi, I would recommend making a backup just in case something goes wrong. If possible you can also create a staging site, where we can do that testing. Most of the hosting offers this option to create staging site, with the click of the button. Otherwise, make sure you have a backup before proceeding. It shouldn't do anything and nothing should not go wrong, but it is better to have a backup just in case. Let me know how it goes. Thanks and regards, |
May 26, 2020 at 2:57 pm #6221125 | |
nicholasT-12 |
Hi Drazen, I realized 3 tests on a staging version of the site, the first two you suggested, and another one (only deactivating Yoast Plugins). I was not able to try case 3, as I did not understand clearly what I've to do. I'm sending the results attached. Thanks, Nicholas |
May 26, 2020 at 3:24 pm #6221483 | |
nicholasT-12 |
Also, I share with you the last reply from Yoast Support, with attachment: "In our testing with v14.2 of Yoast SEO Premium, WPML v4.3.14 and Yoast SEO Multilingual v1.1.1 we are unable to reproduce the issue on a basic theme. On a translated blog pagination page the right canonical appeared and the hreflang tags did not appear. See attached. If you are not using those versions of the plugins please update and see if the issue resolves." Note: every version I'm using is updated and there is apparently no conflict between plugins. |
May 27, 2020 at 8:50 am #6227249 | |
Dražen Duvnjak Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+01:00) |
Hey Nicholas, thanks for taking the time to test and sharing all the info. So in Case 1 and Yoast SEO support confirmed it, the problem is probably coming from your theme/ Elementor widget issue with Yoast SEO. When on page 2, canonical URL should be page-2 as in image Yoast SEO support share. In test case 1 you can see the issue still exist when WPML plugins disabled, URL still shows blog not page-2 as it should, which means the issue is not caused by WPML. This issue still exists when WPML disabled and on the original language page also. My best guess would be there is an issue with the theme or Elementor widget you are using. I would suggest contacting the theme author and confirm this issue by testing case 3 or use another Blog widget or another theme. - Disable all plugins except Elementor and Elementor PRO It should be as here: hidden link <link rel="canonical" href="<em><u>hidden link</u></em>" /> <link rel="prev" href="<em><u>hidden link</u></em>" /> <link rel="next" href="<em><u>hidden link</u></em>" /> Since the issue is not caused by WPML, and is still there when WPML deactivated there is not much we can do. You need to get a canonical URL correct as in the YOAST support image. I hope you understand our case here, let me know if there is anything else I can do for you. 🙂 Regards, |
May 29, 2020 at 2:05 pm #6250419 | |
nicholasT-12 |
In the end, the issue seems to be related with an Elementor module not compatible with Yoast. This is from the Yoast Support team: "Yoast SEO utilizes the built-in WordPress core functions to recognize pagination. The blog page on your site uses an Elementor module to add pagination to the blog page instead of using the WordPress core static blog page. For Yoast SEO to detect pagination on a non-static blog page, a manual page break must be included in the content. Please reach out to Elementor to request compatibility with our plugin's recognition of pagination. Alternatively, you or your developer can use the wpseo_canonical, wpseo_prev_rel_link, and wpseo_next_rel_link filters to customize these tags. Some example code snippets can be found here and here." So, I will further investigate it with Elementor's support. Thanks for your help! |