The phase difference between the banks of an edge-type planar Josephson junction crossing the narrow thin-film strip depends on wether or not vortices are present in the junction banks. For a vortex close to the junction this effect has been seen by Golod, Rydh, and Krasnov [Phys. Rev. Lett. 104, 227003 (2010)], who showed that the vortex may turn the junction into π type. It is shown here that...