In projectile motion, a constant force mg always acts downwards on the projectile which causes it to move in a parabolic path. In 1-D motion, a constant force acts in the same direction causes it to move in a straight line. So both straight line and parabolic path are correct.