When you enter a room and aren't logged in, clicking the login link opens a new window, which then logs you in and redirects you to the original room. The link should probably open in the current window instead, since otherwise you then end up with two tabs open to the same room (the original, and the post-login).