Membership Plugin: Login and See the Same Page

Hi there,

I’m looking to include buttons at various points in my site to allow login, plus a link at the top to allow easy login for members.

Currently when I simply link to the WP login form it redirects the user to their profile page, but I’d like it to direct back to the page they were on when they clicked ‘Login’. This is in the case that a page has some protected content, and so I put a ‘login’ link there to allow members to login and see the protected content on that page.

Can a login link be created that allows a user to log in but keeps them on the same page so they then see the protected content?