Fixed broken login redirection when 401

Merged Agate requested to merge fixed-broken-redirect-to-login into develop

Merge request reports