Fix redirection on connexion error
Add rank value on each page