In Drupal 6 this can be done with core modules like this:
- enable Trigger module
- add an action
- add advanced action at the bottom and choose “Redirect to URL”
- use description regardless of how you will use it but rather describing what this action does; e.g. “redirect to start node”
- as URL apply “node” (without the quotation marks). Instead of node you can redirect to any url you like. See my screenshot for how it could look.
- set-up the appropriate trigger
- from the drop-down list at “Trigger: After a user has logged in” select your new action from just now
- log out and back in again to test it
Note: In the links provided you need to change “your-domain-path-to-drupal” with your actual domain name to become something like http://example.com/admin. Or navigate as usual if you now where to find the settings pages in Drupal 6. If you happen to have clean urls disabled you might know already that you need to prefix the admin path (as every other path) by “?q=” so it all together looks like this: http://example.com/?q=admin. This, however, doesn’t concern the node parameter where you redirect to. That’s always an internal relative path without the leading slash; or some full url of corse.
Update 05/2009: If you want a simple module to do that for you useLogin Destination. To redirect user/1 to /admin and site users “back” to the page they logged in from the following PHP snippet should work for Drupal 6 (not tested, feedback welcome!):
global $user;
if ($user->uid == 1) {
// Redirect the Administrator
return 'admin';
} else {
return ($_REQUEST['q']);
}
Resources
- HowTo trigger Emails when Comment has been posted
- for advanced redirects see Login Destination module or Token module










Andrei said,
Tuesday, 20th Dec 2011 at 17:32
Thanks for the post. The Login Destination module with the PHP snippet you provided worked for me.
Cruz (@neurobug) said,
Tuesday, 23rd Aug 2011 at 08:26
Que buena ayuda!!
geoge said,
Thursday, 28th Jul 2011 at 19:24
8Y1Jq1 http://fnYwlOpd2n9t4Vx6A3lbk.com
Ketan Kulkarni said,
Monday, 2nd May 2011 at 07:21
Thank you for the information! Nice blog.
Félix Delval said,
Tuesday, 1st Feb 2011 at 12:35
Nice usage of the trigger module.
Thank you.
eddie said,
Friday, 10th Sep 2010 at 00:12
Hi, i have downloaded and installed drupal 6.19.
the only module I enabled was Trigger
followed your steps from 1 to 8, without any success.
tested the same action with other triggers, but “redirect to URL” after user login does not work?
any help would be appreciated. thanks
Ajai said,
Tuesday, 25th May 2010 at 21:34
Thanks,. this was helpful
Guy Roberts said,
Tuesday, 13th Apr 2010 at 16:34
That helped me, thanks.
user said,
Wednesday, 31st Mar 2010 at 11:53
Simply works, perfect
Thanks a lot )
kurye said,
Wednesday, 17th Mar 2010 at 13:16
You have a very good description. you agree