If I place any type of minecart on rails parallel to z-axis, when I break the rails underneath the minecart, the minecart always rotates to direction parallel to x-axis. Direction of rail breaking, or blocks positioned around the minecart, do not matter.
Related issues
Attachments
Comments

Duplicate of MC-4057
This is not a duplicate.
This should be forward resolved as a duplicate of MC-270861 (which was resolved as "Won't Fix")
Fixed in the 24w33a+ minecart experiment:
Before breaking the rails:
[media]
After breaking the rails:
[media]

I am also experiencing this issue