add filter login_redirect does not contain original requested redirect
You can use login_redirect filter. See here http://codex.wordpress.org/Plugin_API/Filter_Reference/login_redirect I think this is what you are looking for. This will normally redirect all logins. To be able to redirect only when you want, you can use a query string parameter in the URL. Check for the parameter, if it exists redirect. Try to add this in … Read more