I have created a hook and redirected the users after login from the login page to a certain page.

But when I go to /user/login after a successful login will redirect me to the user profile page (/user/1). How do I redirect a logged in user when trying to access /user/login page to a certain page that I have previously created.


Maybe this module user_default_page, might be what you are looking for.

From the description,

Fill the 'Redirect to URL' field and 'Message' field for both Login and Logout fieldset.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.