Skip to main content
drupalreleases
Release: Cms 2.2.3 — Update released for Drupal core (2.2.3)! Release: Libraries API 4.2.1 — Minor update available for module libraries (4.2.1). Release: Menu Link Attributes 8.x-1.10 — Minor update available for module menu_link_attributes (8.x-1.10). Release: Menu Link Attributes 8.x-1.9 — Minor update available for module menu_link_attributes (8.x-1.9). Release: Menu Item Extras 3.2.0 — Minor update available for module menu_item_extras (3.2.0). Release: Layout Paragraphs 2.1.4 — Minor update available for module layout_paragraphs (2.1.4). Release: PhotoSwipe - Responsive JavaScript Modal Image Gallery 5.0.11 — Minor update available for module photoswipe (5.0.11). Release: Search API attachments 10.0.13 — Minor update available for module search_api_attachments (10.0.13). Module Revived: Libraries API 4.2.0 — Module libraries updated after 11 months of inactivity (4.2.0). Security Coverage: Component Library — Module component_library now has official Drupal security advisory coverage.

Link Magician

3 sites No security coverage

Part of the Link ecosystem · 35 projects

View on drupal.org

Link Magician helps manage broken links and media references within your Drupal content. It automatically converts hardcoded links into usable entity links and transforms unmanaged files into proper media entities, while also providing detailed logs of all changes and any issues it couldn't resolve.

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

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
5
Tracked since
Apr 2026
Latest release
2 months ago
Releases (12 mo)
5 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Core Release date
1.0.0-rc1 Pre-release 10–11 Jul 10, 2026
1.0.0-alpha3 Pre-release 10–11 Jun 27, 2026
1.0.0-alpha2 Pre-release 10–11 Apr 27, 2026
1.0.0-alpha1 Pre-release 10–11 Apr 27, 2026
1.0.x-dev Dev 10–11 Apr 10, 2026