Units walk through door

The doors in my project are set up nearly identically to the door from the Door1 example scene so I will just use that as a reference. If the door’s collider is toggled off after the scene is running, and the robot is told to move across the wall while the door is closed it remains still and returns a path failure. If the door is then opened and closed without moving the target the robot will pass through it while still returning a path failure.

The same thing occurs in my project, enemies can pass through closed doors if they were opened after being given a destination (Using a 2d grid graph). How do I fix this?