How would I move enemies at an angle towards the player, instead of just moving them straight?

I have been looking around for some time on how to do this, but I did not find anything to help me.

I want to move an enemy towards the player at an angle (white line, the red is how it is moving now) , not really sure how to explain this so I drew it.
I am using RigidBody2D to move stuff around and the player moves around quite fast.

A good way to achieve this effect is to store the player’s past positions and move towards one of them. To get “closer” to the player, move towards more recent positions.