As you can see in the map, there is more than one possible route between BSR & Pune. The route taken by the train cannot be determined automatically. That is the reason for the straight line. One or more "Passes-Thru" stations need to be added in between.
.
Our Admin Saurabh has already done the diligence (Thanks). So now fixed.