I have 2 user roles. When a user logs in, I want to redirect the user to a specific page based on their role. I tried the Login_destination module, but it has not worked for me. I have also tried using the trigger action, but it has also not helped me. When I used this trigger action, the ajax module threw an unexpected error message.. SO please help me.. How do I solve this problem...
This is possible with rules You can try the following
Create a rule with event as "User has logged in".
Add condition "User has role(s)" and configure it as in screenshot
Then save the condition.
- Now add action to you rule and select "page redirect" under system in the select the action to add dropdown.
- This will open a form which will allow you to set the redirection path, simply in the value field give the internal page path you want the user to be redirected to and then save it.Check the screenshot for better understanding This way you can set redirect for one role and similarly you can create one more rule in a similar way for the other user role, if you want the other role to redirect to some other page.