Drupal is a registered trademark of Dries Buytaert

env_link_fixer

6 sites Security covered
View on drupal.org

This module provides an HTML filter and a link widget/formatter to strip production domain names from links and images.

The widget will automatically strip the current domain name from an absolute URL when saving a link field.

The link formatter can have a custom mapping to use, or fallback to the general mapping. The text filter can have a custom mapping to use, or fallback to the general mapping.

The following (advised in production) will disable the modules logic.

$settings['env_link_fixer_disabled'] = TRUE;

You can easily add your local development names. These will be merged with the one defined in config.

$settings['env_link_fixer_custom_mappings'] = [
  'local.example.com' => 'www.example.com,example.com',
  'local.example.net' => [
    'www.example.net',
    'example.net',
  ],
];

Activity

Total releases
1
First release
Jan 2025
Latest release
1 year ago
Release cadence
Stability
100% stable

Releases

Version Type Release date
1.0.4 Stable Jan 30, 2025