Skip to content

False analysis: content element anchors are considered as internal links #306

@sebkln

Description

@sebkln
  • I've read and understood the contribution guidelines.
  • I've searched for any related issues and avoided creating a duplicate issue.

Please give us a description of what happened.

On a multilanguage website, localized TYPO3 content elements contain an anchor with its localized UID (e.g. <a id="c198"></a>).

These anchor links (missing the href attribute) are considered as internal links in the Yoast SEO analysis.

<!-- TYPO3SEARCH_begin -->
<div id="c197" class="frame frame-default frame-type-textmedia frame-layout-0">
    <a id="c198"></a>
    <header><h1 class="">Localized content element</h1></header>
        <div class="ce-textpic ce-center ce-above">
            <div class="ce-bodytext">
                <p>Some content</p>
            </div>
        </div>
    </div>
<!-- TYPO3SEARCH_end -->

Analysis result: "Internal links: You have enough internal links. Good job!"

Please describe what you expected to happen and why.

This result can be confusing for editors which try to optimize a web page.

The analysis should take into account, if an anchor actually contains the href attribute.

How can we reproduce this behavior?

  1. Set up a minimal TYPO3 installation with two frontend languages.
  2. Localize some content element in the TYPO3 backend.
  3. Analyse the Page Translation containing the localized content.

Technical info

  • TYPO3 version: 9.5.9
  • Yoast SEO version: 5.1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions