Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
There are many situations where it may be desirable to have the destination parameter (i.e. "https://example.com/user/login?destination=/node/2932") take precedence over the redirects configured in the Login Redirect Per Role module.
For example, if a user tries to access a page on the site that requires a login and we want to redirect them back to the page after logging in.
I'm attaching a patch which provides a configuration option that will allow for this.
Comment | File | Size | Author |
---|---|---|---|
#2 | allow-destination-redirect-3020104-2.patch | 1.86 KB | nplowman |
Comments
Comment #2
nplowman CreditAttribution: nplowman at FFW commentedComment #3
JeroenTComment #5
AntonnaviWorks/looks fine for me.
Comment #6
AntonnaviComment #7
pratik.mehta19 CreditAttribution: pratik.mehta19 as a volunteer commentedComment #8
GNUMatrix CreditAttribution: GNUMatrix commentedPerfect. If someone could add a note at the top of the module config UI to indicate that this is exactly what the "destination" checkbox is for, that would have saved me the trouble of figuring it out by finding this issue in the queue :-)