Drupal 6: Redirect Users to your Frontpage/Startpage/node after they logged in

In Drupal 6 this can be done with core modules like this:

  1. enable Trigger module
  2. add an action
  3. add advanced action at the bottom and choose “Redirect to URL”
  4. use description regardless of how you will use it but rather describing what this action does; e.g. “redirect to start node”
  5. 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.
  6. set-up the appropriate trigger
  7. from the drop-down list at “Trigger: After a user has logged in” select your new action from just now
  8. 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

38 Comments

  1. Monday, 17th Jun 2013 at 22:13

    It’s very straightforward to find out any topic on net as compared to books, as I found this post at this website.

  2. Sunday, 16th Jun 2013 at 06:41

    They are rivalling regarding customers, therefore the on
    the net parlours are likely to provide actions and also perks you simply won’t get at any local bingo corridor. A jackpot grand casino offers not simply traditional jackpot grand casino games which might be played at some sort of table, but also provides video jackpot grand casino game titles.

  3. Saturday, 15th Jun 2013 at 21:57

    Gaming, Slots Capital as well as roulette have a very one of a kind record throughout United states modern society.
    If you experience simply no present inquire if you have one coming as well as will
    there be just one you would possibly qualify for in the near future.

  4. Saturday, 15th Jun 2013 at 15:32

    Consider just about all probability craps bets along with choice the utmost permitted quantity inside the Online Casinos
    sport craps. The very first thing to be aware of is to take some time off to do many
    exploration using yahoo and google.

  5. Norris said,

    Friday, 14th Jun 2013 at 16:06

    It’s impressive that you are getting ideas from this article as well as from our dialogue made at this time.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: