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.
Problem/Motivation
I'd like to "chain" redirects once a user has registered - sort of required actions post registration.
For example:
User A registers as an Author. Rules dictates that immediately after this, User A goes to "node/story/add". Once this is done, User A is sent to "select-favourite-authors" etc.
Is this at all possible with rules or am I completely out of it?
Thanks for the help :)
Comments
Comment #1
AntiThesis CreditAttribution: AntiThesis commentedAlright, I've established that having two redirects in the actions certainly doesn't work. I suppose what would be needed is some way of seeing whether the user has submitted or moved on from the original redirect.
Comment #2
TR CreditAttribution: TR commentedRules can definitely do this, but a large part of it has to be your data model design. Where do you keep track of which steps the user has completed, and which step is next? One way to do this is with the workflow module, but you can also do it yourself by adding a "step" field to the user entity which keeps track of what step is next for the user. Then write a rule for each step transition, triggered by the expected action (e.g. "New story is created") and include a condition "if user is on step n", then redirect to the next step.