User login persistent destination

Component ID

2876058

Component name

User login persistent destination

Component type

module

Maintenance status

Development status

Component security advisory coverage

covered

Downloads

448

Component created

Component changed

Component body

This tiny module ensures a persistent destination parameter on user login page.

Given the following use case:

You redirect anonymous users to the login page, when they try to access a page they are not authorized to view and add the "destination" query argument in order to send them back to that page after successful login, e.g. www.example.com/user/login?destination=my-secret-page.

That only works well, as long the user only really immediately logs in. If he/she needs to register first and follows the register link in the local tasks, the destination parameter gets lost (www.example.com/user/register).

This module will alter the local task links on the user login page (that are usually login, register and password reset) and preserves the "destination" parameter, if present.

Credits

The module was originally developed and is currently
maintained by Mag. Andreas Mayr.

All initial development was sponsored by agoraDesign KG.