How can I perform the following, if possible:
Redirect a user, based on the page they were viewing, before they registered?
For example:
1) User starts at page A, clicks the registration link and registers, and is redirected back to page A
2) User starts at page B, clicks the registration link and registers, and is redirected back to page B
Right now, your plugin will always redirect to the same page, regardless of the page that was viewed, prior to registration.