Fix post-login redirect (maintain URL if possible)