Latest Redirect

Component ID

1562090

Component name

Latest Redirect

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

This module provides a simple redirect to the newest instance of a particular entity type. Optionally you can also specify a bundle type as well.

This provides you with a link that you can publish like:
http://example.com/latest-redirect/node/article
which will always redirect the user to the newest published node of type article.

This module determines the newest instance by looking for a property called 'created' in the entity information. If there is no 'created' property then we sort by descending entity ID instead.