Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Field Redirect

No security coverage Under active development 34 sites

This module allows you to redirect users to URLs stored in link, file, or image fields on content, users, or taxonomy terms. You can specify different HTTP redirect status codes or return 403 Forbidden or 404 Not Found errors based on whether the field is populated.

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
Drupal 10–11

Ask your assistant about Field Redirect

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

  • file Drupal core
  • node Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
7
Tracked since
Apr 2023
Latest release
11 months ago
Releases (12 mo)
1 ▼ from 3
Maintenance
Slowing

Release Timeline

Releases

Version Type Core PHP Release date
3.0.2 Stable 10–11 Oct 24, 2025
3.0.1 Stable 10–11 Sep 29, 2025
3.0.0 Stable 10–11 Sep 29, 2025
3.x-dev Dev 10–11 Apr 7, 2025
2.0.3 Stable 9–10 PHP 8 May 23, 2023
2.0.2 Stable 9–10 PHP 8 May 23, 2023
2.0.1 Stable 9–10 PHP 8 Apr 12, 2023