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

94 Comments

  1. Sunday, 21st Jul 2013 at 03:00

    There usually are 2 various kinds of binary Options broker reviews.
    For instance, your Aussie dollar is often a very strong currency exchange that has a very
    high amount during the day, that is basically night time in the states.
    ‘Touch’, will allow buyers to figure out no matter if a learning resource will effect a collection cost previous to it’s expiration, is actually ‘Range’ shareholders can easily estimation if the useful resource will probably conclude in a pre-specified selection. Volatility usually produces unpredictability, an ailment that can commonly lead to high-risk investing circumstances that is certainly damaging intended for investors. If the market is below the affect cost, then your individual whom ordered a “put” selection is definitely the the one which wins.

  2. Saturday, 20th Jul 2013 at 13:53

    just how small? I have by no means got word of from any
    of the alleged cube These 70 numbers, you’ll find around 6, 000 probable range combos on a bingo credit card, which in turn involves twenty-four random amounts involving 1 and also 75.

  3. Wednesday, 17th Jul 2013 at 11:00

    As a result of in which, there were a lot more I might likewise prefer to declare that a person
    stay away from online bingo web-sites of which location some sort
    of cost in withdrawals. The couple would not subject.
    Here is my weblog; advertised on the net. Lots of people declare the martingale system will be the greater one particular however also you can make up your
    individual program when you are participating in stay roulette
    and won’t need to simply follow another woman’s roulette methods or even methods, some people
    actually adhere to this bets in their buddies as well as other folks that are over a lucky work.

  4. Apache said,

    Sunday, 14th Jul 2013 at 03:12

    * In the event that you are likely to enjoy a similar quantities everytime, make sure there’re observed inside the agreement. online Apache avoiding such as problem, along with another online business, are those in which the main get in touch with e-mail is a hotmail or possibly a askjeeve target!

  5. Saturday, 13th Jul 2013 at 01:44

    Thus, it’s not uncommon to own two or three unique winners. A number of golden cherry casino people which are suitable can make considerable income playing online golden cherry casino.

  6. Friday, 12th Jul 2013 at 22:41

    When the item relates to game titles, your topgame choice is not off of
    the charts, still you’ll find any sort of sport and they’ll almost all be considered a minor
    unique with design and style, much more unique as compared to anyone
    is known to. The reason would likely any casinos Online allow this particular transpire?

  7. Friday, 12th Jul 2013 at 21:52

    There are arbitrage opportunities in numerous markets.
    The one concentrated on this is actually the sports betting market place worldwide.
    One of several 1st objectives the on-line bingo web site appears to be
    to attain will be overall web safety measures.

  8. Friday, 12th Jul 2013 at 20:41

    An educative pamphlet about addictive gambling directories these kinds of indicators which might be discovered at your workplace Though it can take place as being a deserving strategy for your Baccarat gambler, the truth that the
    issue involving utilized credit cards currently being provided back to the particular

  9. Friday, 12th Jul 2013 at 18:14

    trading At night with binary options is ready to trading At night with
    binary options just about any nationality, generally in most dialects, for instance Uk, Italian, The french language, The german language
    and many more. As opposed to traditional as well as “vanilla” choices,
    you just aren’t waiting a couple of days, or maybe weeks, so that you can generate your current revenue. The particular distinction in between these types of in addition to regular possibilities is actually you are aware exactly how much an individual stand to get or lose, along with your profits and failures can occur inside moments, not really days or perhaps several weeks. trading At night with binary options clients may be self-assured which their own issues as well as issues is going to be responded to by means of a small grouping of useful in addition to well-informed trading At night with binary options workers.

  10. Friday, 12th Jul 2013 at 12:30

    In our principal website (WiseBettor. com), When i head out much more in detail regarding gambling,
    nevertheless that rapid start off information will provide you with everything required to perform a jackpot grand casino
    game associated with blackjack. Smaller freerolls might have award swimming pools involving $50, while larger versions possess $1, 000, 000 throughout reward dollars on the line.


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 )

Google photo

You are commenting using your Google 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

%d bloggers like this: