I have created this video in order to represent the pathfinding issues related to War Salamander and Azure Dragon.
There are two types of pathfinding: long range and short range. The long range pathfinding of War Salamander and Azure Dragon (amphibian units) doesn't ignore the already destroyed buildings.
The video has 4 parts:
The long range pathfinding of War Salamander and Azure Dragon ignores the fact that the wall has already gone.
The short range pathfinding of these units doesn't ignore it, it chooses the optimal path.
When I convert the wall into a Gate, the same thing happens.
When short range pathfinding leads War Salamander and Azure Dragon to go where a building stood before and they want to move away with long range pathfinding, they stuck.