After redirect from login form and etc to ?destination=[PATH] message created by action is not showing.

Comments

brad.curnow’s picture

I have this same issue, missing something simple?

I've tried moving my re-direct to the top of the actions, and setting messages later but to no avail. Messages seem to never show up if a re-direct is involved as presumably they're 'shown' on the landing page, before re-direction takes place.

Any advice would be greatly appreciated.

Cheers!

BC

anikitin35’s picture

Silence...

jay-dee-ess’s picture

Same issue here.

tr’s picture

Category: Task » Support request
Priority: Major » Normal
Status: Active » Closed (works as designed)

Works for me - here's an export of my test Rule which shows exactly what I tried. Of course you could have been doing something different - since you didn't export your Rule I can't guess why it wasn't working for you ...

{ "rules_test_rule_for_issue_2385659" : {
    "LABEL" : "Test rule for issue 2385659",
    "PLUGIN" : "reaction rule",
    "OWNER" : "rules",
    "REQUIRES" : [ "rules" ],
    "ON" : { "user_login" : [] },
    "IF" : [ { "list_contains" : { "list" : [ "account:roles" ], "item" : "2" } } ],
    "DO" : [
      { "drupal_message" : { "message" : "User [site:current-user] has logged in. User is authenticated." } },
      { "redirect" : { "url" : "temp" } }
    ]
  }
}