Broken links report: Show translated title and link to translated entity

Created on 18 January 2023, about 2 years ago

Problem/Motivation

The entity containing a broken link is shown in the report via views field 'Page entity label' (LinkcheckerLinkPageEntityLabel).

If the entity is translated it is shown with wrong label and linked to wrong translation.

Steps to reproduce

  • Create node type with link field checked by linkchecker
  • Add node with broken URL
  • Translate node, remember to translate the node title
  • Run broken links cron
  • Check broken links report (Administration > Reports > Broken links):
    both nodes are shown with correct "Language: ..." but label and link are the same.

Proposed resolution

Check in LinkcheckerLinkPageEntityLabel::render() if $linked_entity is translatable and translate it accordingly.

Remaining tasks

Patch coming.

User interface changes

Broken links report shows translated title and links to translated entity.

🐛 Bug report
Status

Active

Version

1.0

Component

User interface

Created by

🇩🇪Germany gngn

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