Keep current URL (if it's not an AJAX url) in session so that the browser may be redirected back.