Link field redirect

Categories

Component ID

2193361

Component name

Link field redirect

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

NOTE: You should probably use the full-featured field_redirection instead of this module!

Link field redirect provides a simple link field formatter which redirects the user to the url provided in the field's value.

It's up to the implementers to only render this field in instances where you want the user to be redirected. Avoid using this formatter where more than a single instance is displayed.

Why I created this module

One use case I've encountered several times is when certain nodes (or other entities) need to be kept outside of Drupal. It's nice to be able to be able to have these nodes easily show up in views and other queries, and make it easy on content editors to some day bring this content in to Drupal. When you'd otherwise land on the full node view, you can now redirect the users to an arbitrary url. This is accomplished simply with this module by adding a new link field. After ensuring the field only displays on the full node display, set the display of your new link field to "Redirect" and select the status code.