Redirect to previous page after loginHome › Forums › Pie-Register 2.0 Support › Redirect to previous page after loginThis topic contains 3 replies, has 2 voices, and was last updated by Pie Register 3 years, 7 months ago.Viewing 4 posts - 1 through 4 (of 4 total)Author PostsSeptember 5, 2015 at 1:54 am #3952 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?ThanksSeptember 7, 2015 at 4:08 pm #3960 Pie RegisterKeymasterHello,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 helpsThanksSeptember 9, 2015 at 8:59 pm #3975 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 #3979 Pie RegisterKeymasterBoth login pages will accept and process with redirect_to variable.So whatever you are using just append the URL with parameter in your pageThanksAuthor PostsViewing 4 posts - 1 through 4 (of 4 total)You must be logged in to reply to this topic.