By dmitry70 on
I am trying to mandate that the user will be redirected to extended profile page after user has created a new account. I am doing it using rules module. In rules module I created a new rule: Redirect to Extended Profile, which is triggered when the following conditions are met:
1. Event - user account has been created
2. condition - user has a specific role
3. Action redirect to the following URL: user/24/edit/extended_user_profile.
Now, the number in the URL should be replaced with the user's id, but I am not sure how to do it. user/<? php echo $user ?>/edit/extended_user_profile doesn't work, how would I do it?
Comments
_
Can you not use the [user:uid] token?
Where in this path I need to
Where in this path I need to specify it and in what format?
user/1/edit/extended_user_profile
Note, this needs to be done in rules module GUI and not in the code...
_
It is done through the rules UI. Make sure you have the token module loaded-- there should be a 'Token replacement patterns' fieldset that lists all the tokens available in the action configuration page.
_
user/[user:uid]/edit/extended_user_profile redirects page to user/%5Buser%3Auid%5D/edit/extended_user_profile, looks as if it converts token to the set of characters... I have token module loaded.
_
Ok, it works now. I've installed dev version of Token module as opposed to 1.11, which didn't work with rules, and now it works fine. Thanks for your help!