External url is treated as internal when does not have schema

Created on 21 February 2025, about 2 months ago

Problem/Motivation

External url is treated as internal when does not have schema:
\Drupal\entity_mesh\Target::setIfExternalOrInternal

    // This is internal because the relative path has not defined schema.
    if (empty($href_components['scheme'])) {
      $this->setLinkType('internal');
      return;
    }

Steps to reproduce

Set an external URL without schema (http or https) on a content and then launch entity_mesh, review if is checked as internal link and broken link.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇪🇸Spain eduardo morales alberti Spain, 🇪🇺

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

Comments & Activities

Production build 0.71.5 2024