env_link_fixer
6 sites
Security covered
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',
],
];