Yoast SEO incorrectly reports “No images appear in this page” even when <img> tags are present

Created on 21 May 2025, about 1 month ago

Problem/Motivation

The Yoast SEO module for Drupal displays the warning:
Bad SEO score
"No images appear in this page, consider adding some as appropriate". Even when a valid tag is present in the content body (or the field configured for content analysis).

Steps to reproduce

1. Use Drupal 10 or 11
2. Ensure the Yoast SEO module is installed and configured correctly.
3. Edit a content node using a WYSIWYG editor (e.g., CKEditor 5).
4. Insert an image into the body field(field_body) via the editor (ensuring the image renders as a proper tag in HTML).
5. Save the content and observe the Yoast SEO analysis output.

Expected Result

Yoast should detect the image and not show the “No images appear in this page” warning.

Actual Result

Yoast incorrectly reports that no images are found, resulting in a bad SEO score, even though the image appears correctly in the rendered HTML.

Technical Details

  1. The tag does appear in the HTML source of the analyzed field (body, typically).
  2. Verified that the text format allows .
  3. Verified that the image is accessible and publicly viewable.
  4. The issue persists across:
  5. Drupal 10, 11
  6. Different text formats (Full HTML, Basic HTML)
  7. Yoast module versions 2.1.0
🐛 Bug report
Status

Active

Version

2.1

Component

Code

Created by

🇮🇳India karishmaamin

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024