On the right/wrong track/path/road
To be headed in the right/wrong direction, the figurative sense of these expressions dates from the late 19th century.