Pathfinding for trading route not working as expected

Hmm, I guess my assumption about the barricaded bridges is wrong. In the 5th misson of Sforza I have the same problem. But here the bridges are passable from the beginning.

A and B are my markets. X is the market of green. The AI decides to use the trading route X-A instead of X-B:

Corresponding saved game: