Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have created a new helper module for Linkchecker which highlights broken links with different colors according to the response code. This allows broken links to stand out in large blocks of text and helps content managers determine which links may or may not need to be fixed.
Comments
Comment #1
caesius CreditAttribution: caesius commentedComment #2
hass CreditAttribution: hass commentedThis is a very cool feature I thought about in past, too. After some thinking I focused on other things as it seems to be difficult for internal, relative and absolute paths. The patch #1441574: Port D6 access bypass bugfixes to D7 may also help you to better detect all links as a short review of your sandbox have shown me your code may not find *all* links. I may be wrong, but you are looking for absolute links only if I remember correctly and linkchecker allows a lot more like pathauto and other input filtered links. To get this feature in we first need to fix #1441574: Port D6 access bypass bugfixes to D7 and make sure that all links are getting highlighted.
I'm not sure if it may be more easier/reliable to implement this with an input filter that adds the css classes to the links just on output. With DOM you can add classes really easy. I also wished we would be able to do the same in the edit form - at least in WYSIWYG editors.
Comment #3
hass CreditAttribution: hass commentedOk, the access bypass has been committed.
The idea about the feature here is as follows:
Variant 2 should be the fastest and most reliable. I'm open to other ideas. Are you able to develop this feature?
Comment #4
hass CreditAttribution: hass commented@caesius: Are you working on this feature?
Comment #5
hass CreditAttribution: hass commentedNo patch provided.