 readme description this module controls where users go after logging in return them to last page they were on a special checkbox note in order for this to work on the user page you have to follow the tutorial on the project page http drupalorg project logindestination it works fine with the login block or a static url you provide internal drupal path user examplepage subcategory no quotations supported in static php mode external url http examplecom http sub1examplecom http examplecom subdir aliases work query strings too for anchors submit an issue or your a php snippet that returns a string all for static above applies here too or an array only when there is a get query at the end of the url like example var1 value example return array path node add video query param1 100 param2 200 note the absence of the sign see below for examples the project page might have more http drupalorg project logindestination php snippet s power is that you can have conditions in there redirect based on uid role other logic global go nogo redirect filter you can also configure from which pages redirection is applied only to achieve this you can specify either a list of urls wildcards do not work currently or a php snippet to build this list dynamically there is an always checkbox that makes this filter fire redirection always so you can redirect the user to various pages depending on which pages they are logging from configuration go to administer user management login destination page admin user logindestination example 1 always redirect user to whatever page he was on when he logged in simply check always in the condition fieldgroup and then check return user to where he she came from preserve destination done note this returns the user always to where he was no matter if the destination get variable was set explicitly in the url if it was it is used if it was not set the user is brought back note 2 if you need this to work on the login page at user you should read a howto on the http drupalorg project logindestination example 2 php snippet for redirection url should return a string here is an example global user if user uid 1 redirect the administrator to admin return admin elseif user uid 2 redirect the site owner to create video page return array path node add video query param1 100 param2 200 else return node example 3 php snippet for redirection condition should return boolean value an example is return get q user login or return true or if a b return false else return true don t put php tags when creating snippets authors moshe weitzman ardas group rsvelko from segmentsat  