Internal links set in the link field are not recognized

Created on 5 November 2021, about 3 years ago
Updated 19 August 2024, 4 months ago

Problem/Motivation

When an internal link is set in the link field, it is not reflected even if the 'Reanalyze content for links' button is pressed.

Steps to reproduce

  1. Enable Link checker(8.x-1.0-beta1) and Dynamic Entity Reference(8.x-2.0-alpha15) modules.
  2. Create a link field in the Basic page and enable "Scan broken links".
  3. Create a basic page and set an internal link (e.g. /node/add) in the link field.
  4. Set "What type of links should be checked?" to "Internal and external" in /admin/config/content/linkchecker.
  5. Press the "Reanalyze content for links" button in /admin/config/content/linkchecker.
  6. It is not displayed on the confirmation page (/admin/reports/linkchecker).

used drupal version is 9.2.6.

Proposed resolution

Change the path starting with "internal:/" obtained from the link checker to start with "/".

Remaining tasks

  1. Fix the issue
  2. Create a patch
  3. Review the patch
  4. Commit the patch

User interface changes

None.

API changes

TBD

Data model changes

None.

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡―πŸ‡΅Japan kumegai

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024