Reply To: Replace the WP login/registration page
Yes, that’s what I meant. That was just an example to show how to achieve the redirection, but then you’d need to customize it to change the URL dynamically.
You could probably use the $_SERVER variable to get the address of the page he’s on. http://php.net/reserved.variables.server