Fix redirect to login form when hitting @@invitations anonymously.