Drupal is a registered trademark of Dries Buytaert
cms 2.1.2 Update released for Drupal core (2.1.2)! drupal 11.1.10 Update released for Drupal core (11.1.10)! drupal 10.5.10 Update released for Drupal core (10.5.10)! drupal 10.4.10 Update released for Drupal core (10.4.10)! drupal 11.2.12 Update released for Drupal core (11.2.12)! drupal 11.3.10 Update released for Drupal core (11.3.10)! drupal 10.6.9 Update released for Drupal core (10.6.9)! drupal 10.6.8 Update released for Drupal core (10.6.8)! drupal 11.3.9 Update released for Drupal core (11.3.9)! drupal 11.3.8 Update released for Drupal core (11.3.8)! drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! linkit 7.0.15 Minor update available for module linkit (7.0.15). views_data_export 8.x-1.10 Minor update available for module views_data_export (8.x-1.10).

link_magician

1 sites No security coverage
View on drupal.org

Link Magician scans for faulty/hardcoded links or improperly linked/referenced files and images (found in 'rich text'). Hardcoded links are converted to LinkIt-compatible entity links and files which are referenced directly (unmanaged files) are converted to media entities and linked properly. Just as important, Link Magician also provides extensive logging showing every change it makes and keeping track of faulty things it can't fix so that those may be processed manually.

Features

  • Batching. (a necessity for lots of content, but you'll appreciate the ability to specify batch sizes and limits if you need to 'babysit' the process.)
  • Extensive logging ("Tracking")
  • Includes optional sub-modules that add support for:
    • Layout Builder
    • Paragraphs

Installation

Install as you would normally install a contributed Drupal module. For further information, see Installing Drupal Modules.

Post-Installation

(Optional) Install sub modules.

To enable Paragraphs support

drush pm:e link_magician_paragraphs

To enable Layout Builder support

drush pm:e link_magician_layout_builder

Configuration

At a minimum, update the Base URI and Additional Host settings on the configuration page (/admin/config/system/link_magician).

note the configuration and settings for Link Magician need some work (issue #3584762)

Base URI

This main URL the site; this is used in the logic that checks for redirects that may be redirected by something other than Drupal.

On a production site, this should be the same as the url that users access the site with (ie, https://www.example.com/).

On a development sandbox/server, it would be the address you access the development server at (ie, http://example.ddev.site/)

Additional Hosts

Add any hosts to treat as being on this site. (ie. 'www.example.com'/'example.com')

Additional Requirements

Redirect

Drush 13

Linkit

Usage

Out of the box, you'll have a few Drush commands available

backstop

Useful for comparing before/after (see testing.md)

drush link_magician:backstop {batchid} > backstoplinks.json

purge

Truncate the Link Magician tables in the database.

drush link_magician:purge

tidy

This is where the magic happens, run the tidy process. The help option is your friend.

drush link_magician:tidy --help

Activity

Total releases
3
First release
Apr 2026
Latest release
4 weeks ago
Release cadence
9 days
Stability
0% stable

Release Timeline

Releases

Version Type Release date
1.0.0-alpha2 Pre-release Apr 27, 2026
1.0.0-alpha1 Pre-release Apr 27, 2026
1.0.x-dev Dev Apr 10, 2026