Redirect to previous page after login Home › Forums › Pie-Register 2.0 Support › Redirect to previous page after login This topic contains 3 replies, has 2 voices, and was last updated by Hasnain Abbas 3 years, 1 month ago. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts September 5, 2015 at 1:54 am #3952 Marcus AzevedoParticipant I am sorry if the solution for that is already in some place, but I searched for that everywhere and all I found was outdated. Is there a way to make the user to be redirected to the page he was before login? How? Thanks September 7, 2015 at 4:08 pm #3960 Hasnain AbbasKeymaster Hello, You can do it with little programming. All you need to do is to pass the current page URL to redirect_to variable and append it on login page url. i.e: http://example.com/login-page/?redirect_to=http%3A%2F%2Fexample.com%2Fsome-page%2F Hope it helps Thanks September 9, 2015 at 8:59 pm #3975 Marcus AzevedoParticipant I understand the concept, but where exactly do I pass the current page URL to the redirect_to variable? On pie-register.php? Or on wp-login.php? Thanks for the help! September 10, 2015 at 4:36 pm #3979 Hasnain AbbasKeymaster Both login pages will accept and process with redirect_to variable. So whatever you are using just append the URL with parameter in your page Thanks Author Posts Viewing 4 posts - 1 through 4 (of 4 total) You must be logged in to reply to this topic.