Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Views Bootstrap 5.5.4 — Minor update available for module views_bootstrap (5.5.4). Release: Download Tracker 1.0.7 — Minor update available for module download_tracker (1.0.7). Release: Directory2Block Slideshow 1.0.8 — Minor update available for module directory2block_slideshow (1.0.8). Release: Mautic Audiences 1.1.5 — Minor update available for module mautic_audiences (1.1.5). Release: Rightup theme 1.0.3 — Minor update available for theme vartheme_bs5_rightup (1.0.3). Release: CommentOn 1.0.6 — Minor update available for module commenton (1.0.6). Release: ChatGPT Ads 1.0.3 — Minor update available for module chatgpt_ads (1.0.3). Release: Opensolr Search 5.1.3 — Minor update available for module opensolr_search (5.1.3). Module Revived: Swagger-PHP OpenAPI 3 documentation generator 1.0.0 — Module swagger_php updated after 10 months of inactivity (1.0.0). Security Coverage: Microsoft Azure AI — Module ai_provider_azure now has official Drupal security advisory coverage.

Entity Redirect

Security covered

Part of the Entity ecosystem · 235 projects

View on drupal.org

DESCRIPTION

Adds a configurable redirect after saving a node or other entity. The redirect is configurable per bundle. Also, given sufficient permissions (and presuming it is enabled for that specific content/bundle), individual users can configure their own redirects (on their profile edit page).

Provides four different types of redirection:

  • Default: This will not impact the entity but will just go to the default.
  • Add Form: Redirect to a new add form for the content type/entity.
  • Local Url: provide a local url in the form of /about to go to any page on the site.
  • External Url: Same as local url but to an external location. Note: this is only available to users with the permission set external entity redirects.

You can also control whether this occurs only on saving a new entity or for both creating and editing an entity.

Note: depending on permissions, the redirect will also occur for anonymous users so if using the Local Url option make sure they have permission to access the destination if they can add/edit the content type/entity. This is a relatively rare site configuration so in most cases you can safely ignore that.

MOTIVATION/USE CASES

Sometimes the best workflow is to add a lot of entities in a row, so you want to return directly to the add entity form after each one. Another use case is taking users to a thank-you page after contributing something.

REQUIREMENTS

Drupal 10 suggested, but should work with Drupal 8+. Automated test/support on Drupal 9.5.x and 10.x.

INSTALLATION

Install as you would normally install a contributed Drupal module. See the Drupal 8 module install instructions if required.

CONFIGURATION

Configuration can be accessed for each supported entity bundle on the edit page for that entity type. For example for the Node type Article that would be at /admin/structure/types/manage/article. The configuration will be in the publishing options section if available.

With sufficient permissions' per user personalization can done on the users' profile edit pages.

FAQ

Any questions? Ask away on the issue queue.
Alternatively feel free to contact Nick via Twitter (@NDickinsonWilde), or email ([email protected]). or Henrique on slack (hmendes) or email ([email protected])

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
Aug 2024
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core Release date
8.x-2.3 Stable Aug 19, 2024