Here is what can currently happen today:
I'm not logged into SO. I go to a question, I click "up vote". it shows the dialog "Thanks for the feedback!...Sign up or login..."
I click "Sign up using Stack Exchange"
It directs me to /users/signup?returnUrl=XXX
I then click on the log in tab (it redirects me to /users/signup with no GET parameters) and I login.
What I expect to happen:
It should take me back to the page I was on and trying to click the up button on.
What happens:
It takes me back to the SO home page and I have to use my browser's back button about 3 times to get back where I wanted, causing some confusion and enough consternation to justify me noting it on meta.
Suggested fix:
If you're on the "sign up" tab with a returnUrl GET param, keep/propagate that to the "Log in" tab if they switch to it.