Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Environment Link fixer

7 sites Security covered Drupal 8–11
View on drupal.org

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

Tracked releases
1
Tracked since
Jan 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Releases

Version Type Core Release date
1.0.4 Stable 8–11 Jan 30, 2025