Can I send my user back to the previous page when he logins in Drupal ?
He can login from different pages in my website. There is not only one login node. I would like to send him back to the page where he was.
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Check out the Login Destination module. One of the configuration options for that module is “Return user to where he/she came from. (Preserve destination)”, and I believe it’s enabled by default.
Also helpful is LoginToboggan, which offers a few more login/registration tweaks. LoginToboggan includes an option for a “Login successful” message, which is good way to make sure your newly logged-in users don’t get confused when they get redirected back to the previous page.