"You're linking to another page with the focus keyword" is always flagged

Created on 30 January 2025, 2 months ago

Problem

When using a keyword that is in the page title, "You're linking to another page with the focus keyword you want this page to rank for. Consider changing that if you truly want this page to rank." is always flagged.

I have debugged the "paper" variable in the JS, and it is adding the title as a link, because of this, from the node template:

{{ title_prefix }}
  {% if label and not page %}
    <h2{{ title_attributes }}>
      <a href="{{ url }}" rel="bookmark">{{ label }}</a>
    </h2>
  {% endif %}
  {{ title_suffix }}

However, the actual page does not render the title as a link, and the html snippet is not present in the DOM. I have tried with Stable9 and Olivero, and I am using the Default view mode.

I am not sure why this is happening, any suggestions would be appreciated. A possible indirect fix would be to ignore any links that reference the current page?

🐛 Bug report
Status

Active

Version

2.1

Component

Code

Created by

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

Comments & Activities

  • Issue created by @scambler
  • 🇪🇸Spain solanas

    Same problem here.

    I'm on a new and clean Drupal 10.4.4. I only have installed yoast_seo 8.x-2.1.

    I don't know how to debug this. May the problem is that this link is in the "Breadcrum".

Production build 0.71.5 2024