The web site used to redirect you back to the page from whence you came, after your authentication token had expired and had to be renewed.
Currently, after authentication renewal, you're redirected to the front page.
The expected behaviour is that if you were in your library, you get redirected back there after authentication.