get to previous page with destination d6 For example i have a button which has onclick event (redirecting to a user login page). When a user clicks on that button browser redirects him to page user/login, but when he's successfully logined in - how to redirect it back to the previous page? Tried module login_destination, but didn't worked for me..
In your onclick event, add a destination=previous_path along with your redirection url.

ie: yoursitename.com/user?destination=previous_path