Did you ever find a fix for this? I’m having the same issue… I thought changing the wp_safe_redirect would do the trick, but it doesn’t seem to be the case.
No, I was not able to get this working – I don’t want to edit the core plugin, but that’s my next move unfortunately unless they fix this….
Hello there,
sorry for the huge and unforgivable delay and lack of support. I’ll do my best to change this in 2015.
If you look deeper into the code of the plugin, you’ll notice that the user will be redirected to a custom page if the $_POST-Variable ‘redirect_to’ is setted.
wp_redirect( $_POST[ 'redirect_to' ] );
But I’ll provide a filter as written in my issue tracker.
Best regards,
Thomas
Where am I supposed to set this??
I currently have this in my user-login.php file (which isn’t working since I updated the plugin it’s not calling my custom files):
<?php echo isset( $_GET[ ‘redirect_to’ ] ) ? ‘<input type=”hidden” name=”redirect_to” value=”‘ . esc_url( $_GET[ ‘redirect_to’ ] ) . ‘”>’ : ”; ?>
What do I need to do to get the redirect to work?
Hey RevConcept,
The redirection should work if the URL to the login page is something like http://yourdomain.tld/user-login/?redirect_to={escaped_url}.
I’ll test this issue within the upcoming week. Maybe I should provide a function uf_get_login_url() with the redirection parameter.
I’ll overthink this and will post in this thread.
Best regards,
Thomas