Redirect to previous page after loginThis topic contains 3 replies, has 2 voices, and was last updated by Pie Register 4 years ago. Viewing 4 posts - 1 through 4 (of 4 total)Author Posts September 5, 2015 at 1:54 am #10003952 Marcus AzevedoParticipantI 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 #10003960 Pie RegisterParticipantHello,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%2FHope it helpsThanks September 9, 2015 at 8:59 pm #10003975 Marcus AzevedoParticipantI 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 #10003979 Pie RegisterParticipantBoth login pages will accept and process with redirect_to variable.So whatever you are using just append the URL with parameter in your pageThanksAuthor Posts Viewing 4 posts - 1 through 4 (of 4 total)The forum ‘Pie-Register 2.0 Support’ is closed to new topics and replies.