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).

Four different types of redirection are provided:

  • Default: This will not impact the entity but will just go to the default.
  • Add Form: Just redirects to a new add form for whatever content type/entity was just saved.
  • 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 any external location. Note: this is only available to users with sufficient permission (the set external entity redirects permission to be exact) or the site administrator.

You can also control whether this occurs only on saving a new entity or 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 that 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 an image.

REQUIREMENTS

Drupal 8 is required, Drupal 8.2.x or higher is suggested.

INSTALLATION

Install as you would normally install a contributed Drupal module. See the Drupal 8 instructions if required in the Drupal documentation for further information.

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. With sufficient permissions personalization can done per user on their profile edit page.

FAQ

Any questions? Ask away on the issue queue. Alternatively feel free to contact Nick via Twitter (@NickWilde1990), or email (nick@briarmoon.ca).

Supporting organizations: 
Supported original creation as well as maintenance.

Project information

Downloads