Magnetic path length for partially wound toroidal transformer core
The magnetic path length is the (average) length of the magnetic field lines.

The magnetic field goes all the way around the core. The core "channels" the magnetic field since it has a higher permeability than the air. It doesn't just go through the coil, then pop outside of the core and go back to the start.