Hi :)
I was wondering how the path from an agent to the goal is computed when using a navMesh. On my custom map, I encounter the following path planning. In shows the planned path in yellow where I would expect a more optimal path something like the path I've drawn in red.

I thought the underlying planning algorithm is A* which should output an optimal path. Is the planning
taking something into account that I missed?
I am happy for everyone that can provide help.
I also attach my project files, in case the problem could be with the navmesh.
project.zip