Yoast / wordpress-seo

Yoast SEO for WordPress
https://yoast.com/wordpress/plugins/seo/
Other
1.77k stars 890 forks source link

Wrong canonical URL with Elementor post grid #20172

Open maybellyne opened 1 year ago

maybellyne commented 1 year ago

Please give us a description of what happened

When an archive page/paginated series is created with Elementor Pro, the canonical URLs of the respective pages in the series falls back to the first page instead of employing self-referencing canonical URLs

To Reproduce

Step-by-step reproduction instructions

  1. Install Yoast SEO & Elementor Pro
  2. Create a page with Elementor page and add a Posts or Loop Grid element

Expected results

In a paginated series, self-referencing canonical should be used

Actual results

In the paginated series, /page/n defaults to the first page in the series

Screenshots, screen recording, code snippet

image_720 Desktop-screenshot

Technical info

Used versions

jonoalderson commented 1 year ago

The issue is broader than just the canonical; the problem is that we don't recognize/treat this as a paginated state, and all of our logic, meta, schema, etc, reflects the series root.

maybellyne commented 1 year ago

+1 https://wordpress.org/support/topic/wrong-canoncical-urls-with-pagination/

maybellyne commented 1 year ago

+1 https://wordpress.org/support/topic/bad-canonical-on-elementor-post-page-when-yoast-is-activated-2/

maybellyne commented 10 months ago

Please inform the customer of conversation # 1081614 when this conversation has been closed.

maybellyne commented 8 months ago

Conversation # 1104131 doesn't use Elementor but WPBakery integration in JNews theme. Yoast SEO doesn't recognize pagination from widget elements.