Fix History link when user is not logged in