Clean the segments path from the route