Fixes bad redirect after being forced to log out.
Fixes forceful redirect security issue.
Fixes $.objectId not passing rt parameter correctly.