I'm trying to force a redirect to a user dashboard page when users log in, but I don't want to redirect if the user clicks a one-time login link. When a user clicks a one-time login link, the path contains "reset".

So I'm setting up a rule as follows:

Event: User logs in
Condition: Check path (value = "reset", comparison operation = "contains", negate = true)
Action: Page Redirect to dashboard URL

The redirect action works fine without the path check condition but with the condition, they are never redirected even if they just log on in the usual way from the homepage (i.e. "reset" is not in the path).

CommentFileSizeAuthor
#3 Screenshot (39).png271.25 KBplato1123

Comments

dodge created an issue. See original summary.

dodge’s picture

Seems to work if I use the Conditional Rules module and put the condition in the "Actions" section, just not in the main "Conditions" section.

plato1123’s picture

StatusFileSize
new271.25 KB

I'm in the same boat, I see no indication that this module is doing anything whatsoever. I'm trying to exclude a message form displaying on the front page and whatever combination of "=" or <front> I use has no effect whatsoever, the message fires regardless. Does this module work for anyone? Am I missing something?

sano’s picture

this module works as advertised for URLs like your.server.domain/something. In this case you would use "something" as the value for the action and select operator like "equal" or "contains".

To create a rule with this module that would act on the front page refer to this issue: https://www.drupal.org/node/2057895