Environment Link fixer
This module helps manage links and images by automatically removing your production domain name from URLs. It offers a widget for link fields that strips the current domain when saving, and a formatter that can use custom mappings for domain replacements. Additionally, a text filter can clean up links within content based on defined domain replacements.
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',
],
];
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
Releases
| Version | Type | Core | Notes | Release date | |
|---|---|---|---|---|---|
| 1.0.4 | Stable | 8–11 | Jan 30, 2025 |