I set up a rule that would redirect an end user After updating an existing profile

I've also set this up to redirect an end user After updating an existing user account

What my site does is this, admins create users - basically I have multiple profile types, and what I'd like to happen is after the admin creates a new user they get taken to profile type 2, no problem here - I set up a trigger to handle this "After creating a new user account" they get taken to a url "user/*/edit/profile_type2"

Now when the admin is on "user/*/edit/profile_type2" and hits save I'd like the site to redirect them to "user/*/edit/profile_type3" and so on and so forth. If the admin is on "user/*/edit/profile_type3" and hit save, they'd get redirected to "user/*/edit/profile_type4".

I set up my rule like this and have tried various other options but I just can't seem to get it right. I'm sure it's something simple that I'm doing wrong.

As I've said, I set up a rule that would redirect an end user After updating an existing profile

I've also adjusted the rule and set it up to redirect an end user After updating an existing user account

Then for my condition I did

Data comparison
Parameter: Data to compare: [profile2:user:profile-personal-information, Data value: [profile2:user:profile-personal-information]

To remind you, I have several profile types, the "profile type 2" as mentioned above actually pertains to a profile type named personal information

Then for the action I did this

Page redirect
Parameter: URL: user/[account:uid]/edit/financial_assets

I've also tried several different tokens to place in the [account:uid] area, but this rule and the other rule that would take the admin from "user/*/edit/profile_type3" to "user/*/edit/profile_type4" do not function how I'd like. And I only set up 2 rules, one rule to go from editing personal information to editing profile type 3, and another separate rule that takes your from editing profile type 3 to editing profile type 4.

Any ideas anyone? What happens is this, when I update personal information I get taken to profile type 4. I messed with the weights of the 2 rules thinking that caused the error but nope so I put the rules back at a weight of zero and am posting to this forum for help. Any help would be greatly appreciated. Thanks in advance.

Comments

fineartist99’s picture

Issue tags: +#rules, +#drupal7
tr’s picture

Status: Active » Closed (outdated)
Issue tags: -#rules, -#drupal7

Without seeing your Rules and seeing exactly how you've configured them, it's pretty much impossible to guess what you need to change to get it to behave as you want.

If you're still having this problem with the current version of Rules, export your rules and post them here - perhaps we can spot the problem. At the very least, we will then be able to reproduce what you're seeing.