Fix infinity redirect loop when WS error occurs
There were situations when reForis infinity loop had occurred when the user was
already logged in, but the client rejected the wss
connection. The location
path was not /login
, and an infinity redirect took place. This should fix it.