Questions & Answers about Мы идём по тропинке, пока не увидим озеро.
Идём is the 1st person plural of идти (one-direction movement) and fits a single, concrete trip: we’re going/walking (right now / on this occasion).
Ходим is from ходить (multi-direction / habitual) and would sound like we (generally/regularly) walk along the path, not one specific walk to a goal.
After по meaning along / on (a route), Russian commonly uses the dative case.
So тропинка → dative singular тропинке: по тропинке = along the path/trail.
In this context it’s best understood as along the path / following the path. It can often be translated as on the path in English, but the Russian image is “moving along it as a route.”