Keeps logging me in and taking me back to chat

Hi. I'm on Firefox and I do use Lastpass. Sometimes when I click on a link in chat....my Lastpass comes up and then logs me in and then takes me back to the chat. If I press the back button, it usually takes me to the link topic.