A* pathfinding how to prefer a nicer path

Here is the path my A* always finds.

It is really annoying, because this path would be much nicer for the player. The problem is I have no idea how to change it, nor I even can think of how to google this up… I tried few keywords, but with no results.

Thanks for helping! :smiley: