Drupal is a registered trademark of Dries Buytaert
drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). eca 3.1.1 Minor update available for module eca (3.1.1). layout_paragraphs 2.1.3 Minor update available for module layout_paragraphs (2.1.3). ai 1.3.3 Minor update available for module ai (1.3.3). ai 1.2.14 Minor update available for module ai (1.2.14). node_revision_delete 2.0.3 Minor update available for module node_revision_delete (2.0.3). moderated_content_bulk_publish 2.0.52 Minor update available for module moderated_content_bulk_publish (2.0.52). klaro 3.0.10 Minor update available for module klaro (3.0.10). klaro 3.0.9 Minor update available for module klaro (3.0.9). layout_paragraphs 2.1.2 Minor update available for module layout_paragraphs (2.1.2). geofield_map 11.1.8 Minor update available for module geofield_map (11.1.8).

field_redirect

26 sites No security coverage
View on drupal.org

Overview

This module can redirect to field values for "link", "file", or "image" field types contained in "user", "node", "taxonomy term", or return "403 Forbidden" or "404 Not Found".
For redirects, you can specify the status code "301 Moved Permanently", "302 Found", "303 See Other", and "307 Temporary Redirect". (*The default is "307 Temporary Redirect", if not specified.)

How to configuration:

Just one text area in configuration page:

your-drupal-site-domain/admin/config/search/field-redirect.

Example 1:


node:article|field_source_url#301,#403

Redirect to URL as "301 Moved Permanently" status, if entity type "node", if bundle "article", and if "field_source_url" is entered.
Return "403 Forbidden" status, if "field_source_url" is not entered.

Example 2:


node:page|#404

Return "404 Not Found" status, if entity type "node", and if bundle "page".
This is mainly for when you don't want to show the details page.

Example 3:


taxonomy_term:*|field_overview_url,field_wiki_url

Redirect to URL as "307 Temporary Redirect" status, if entity type "taxonomy_term", if vocabulary is all, and if "field_overview_url" is entered.
Redirect to URL as "307 Temporary Redirect" status, if "field_overview_url" is not entered, and if "field_wiki_url" is entered.
Display "taxonomy_term" normal, if "field_wiki_url" is also not entered.

Example 4:


user|field_sns_url

Redirect to URL as "307 Temporary Redirect" status, if entity type "user", and if "field_sns_url" is entered. Display "user" normal if "field_sns_url" is not entered.

If you enter the above in textarea of the config form, it will look like this:

node:article|field_source_url#301,#403
node:page|#404
taxonomy_term:*|field_overview_url,field_wiki_url
user|field_sns_url

Activity

Total releases
4
First release
Apr 2025
Latest release
5 months ago
Release cadence
67 days
Stability
75% stable

Release Timeline

Releases

Version Type Release date
3.0.2 Stable Oct 24, 2025
3.0.1 Stable Sep 29, 2025
3.0.0 Stable Sep 29, 2025
3.x-dev Dev Apr 7, 2025