How to redirect back to post after login

Hi,

I am about to setup a website that will use WPMU Dev's Membership 2 Pro plugin.

In the menu bar we will have a link that says login where the user can go and login.

Now, if the user is reading a post, they will have to login to read the full post. However, once they click, login and add their info, they should be redirected back to the post they just read.

Is that feature already integrated in Membership 2 Pro, or how can we go about to do this? I checked out: https://longren.io/wordpress-tip-redirect-to-previous-page-after-login/ however, it doesn't seems to be working.

Sincerely
Mika