fixes bug 826785 - Redirect back after sign in not working