How To Send A User Back to the Page They Came From After Login

If you are looking for a way to send a user back to the page they came from after subscribing, we have an add-on for that: Registration Redirect.

Static URL

To set a custom redirect URL for the login form, you can use the login_redirect_url attribute on the shortcode itself.  For example, the screenshot below will send the user back to the homepage after they log in.

Dynamic URL

When the user hits the article limit, he is prompted to login. By default, this login sends the user to the profile page, or URL set with the login_redirect_url attribute, but not the page they came from. Here’s a snippet that will send the user back to the page they were on when they clicked the login link.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us