TL;DR
Revert the changes to the initial rotation angle for a user-rotated rail planner to be the current "auto direction" of the rail planner instead of always being north.What ?
Sometime between 0.17.4 and 0.17.79 the behaviour of rotating the rail ghost planner changed. I can't be more specific because I can't find a change in the log.Previously when you pressed R (or shift-r) the rail planner would rotate either clockwise or anticlockwise from the current direction the rail planner is facing.
Now when you have the ghost rail planner in "auto rotation mode" and press R or Shift-R the rail planner ALWAYS tries to find a path where it ends facing north-east or north-west respectively.