Fix recursive redirect to /user/login

After 1358a1f6a87e7

refs #1231