Drupal tip: redirect on specific page after login

Step 1 : Enable the trigger module if you haven’t done so. (To enable the trigger module, go to administer->site building->module. check the trigger module and press save.)

Step 2 : Go the administration panel and click on action. Under Make a new advanced action available, select Redirect to URL… and hit create.

Enter a description and the url to redirect to. You can use internal url like node/123 to redirect the user on login.

Press Save.

Step 3 : Go to the administration panel and click on triggers under site building. Select users in the tab.

Under Trigger: After a user has logged in, select the trigger you have just created and hit assign.

Logout and log back in to test.

Please take note that this tip is for ALL users that login. For a specific role based or specific user-based rules check the Rules module.

~ di diegotech su giugno 29, 2010.

Una Risposta to “Drupal tip: redirect on specific page after login”

  1. Really cool. It helped me.

    Thanks.

Lascia un commento

Inserisci i tuoi dati qui sotto o clicca su un'icona per effettuare l'accesso:

Logo WordPress.com

Stai commentando usando il tuo account WordPress.com. Chiudi sessione / Modifica )

Foto Twitter

Stai commentando usando il tuo account Twitter. Chiudi sessione / Modifica )

Foto di Facebook

Stai commentando usando il tuo account Facebook. Chiudi sessione / Modifica )

Google+ photo

Stai commentando usando il tuo account Google+. Chiudi sessione / Modifica )

Connessione a %s...

 
%d blogger cliccano Mi Piace per questo: