Why does the Login Destination module not redirect to page? I installed and enabled the Login Destination module, and added a login destination rule.

In Internal page or external URL I added myhomepage which is a basic page URL that I want to show after a user performs a login. If authenticated user login then it would not redirect to default page.

My default dashboard page is /cms and dashboard page after user login is cms/96/dashboard (96 in it is the uid of the user).

I have a three types of users:


authenticated user
administrator
employee entry form


And I want authenticated user and employee entry form user to be redirect to cms/{uid}/dashboard (but not administrator users).

Some more details about my configuration:


Redirect upon triggers : I have only select the first one and that is Login, registration, one-time login link
Only the listed pages:


cms
cms/register
cms/*/edit

and under setting tab I have checked both checkboxes.


But when I try to login then user gets redirected to default page.

Any suggestions?
You can use Rules module.
Events: User has logged in.
Condition: User has role.
Actions: Page redirect.
Other Way through coding:
You can use hook_user_login
function hook_user_login(&amp;$edit, $account) {
 if($account-&gt;uid == 1)
  drupal_goto('cms');
 else
  drupal_goto('cms/{$account-&gt;uid}/dashboard');
}

Updated rule:
{ &quot;rules_after_login_rule&quot; : {
    &quot;LABEL&quot; : &quot;After Login Rule&quot;,
    &quot;PLUGIN&quot; : &quot;reaction rule&quot;,
    &quot;OWNER&quot; : &quot;rules&quot;,
    &quot;REQUIRES&quot; : [ &quot;rules&quot; ],
    &quot;ON&quot; : { &quot;user_login&quot; : [] },
    &quot;IF&quot; : [
      { &quot;user_has_role&quot; : { &quot;account&quot; : [ &quot;account&quot; ], &quot;roles&quot; : { &quot;value&quot; : { &quot;4&quot; : &quot;4&quot; } } } }
    ],
    &quot;DO&quot; : [ { &quot;redirect&quot; : { &quot;url&quot; : &quot;cms\/[account:uid]\/myhomepage&quot; } } ]
  }
}

Look at these post as well.
How to rediret to specific page depends upon user roles
I want to redirect the user to profile page after they log in
Redirect user based on role and node content