Login destination being so heavily used across drupal sites, should have HOOK_login_destination_match_rule_alter() implemented to let module developers customise the matching of redirect rules further.
I ran into a use case where I needed to check if the current user had a permission before a specific redirect rule can be triggered. I will be attaching a patch to it where i have drupal alter to login destination.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

vidhatanand created an issue. See original summary.

vidhatanand’s picture

The following patch implements drupal_alter on login_destination_match_rule, and makes rule id available to make customisations based on rule ids.