I have created a login screen. The login form is set to direct users to their account upon successful login.
Sometimes a user may be on a certain page that requires login for certain functionality – saving a post to favorites. If the user is on the post page (not logged in) and tries to save the post, they will be taken to the login screen. After logging in, they will then be directed to their account page. In the process of logging in, they are now on their account page and the post has not been saved to their favorites… Desired functionality – instead of being directed to the account page, they need to be directed back to the post they were trying to save.
There are times where it is good that the login screen takes them to their account page but other times I want it to go to the previous page the user was on? How can I accomplish this….? popup, two separate login pages, plugin??? Thanks in advance!