If a user is logged out, Twitch presents a login form that should POST data to that URI. It’s strange that you would be redirected to that page itself, unless for some reason your browser made a GET request instead.
If you’re still having this issue, I’d try to explain the exact conditions when it occurs since I’ve never witnessed this myself.