Along the way, they discovered that a revolt had occurred in Lodi, a town under the rule of the Visconti family.
A revolt had occurred in Lodi under the rule of the Visconti family. They discovered this. This was along the way. Lodi was a town.