I would train him to redirect to you at thresholds: he goes through a doorway, then turns back towards you for a reward. It may take a lot of repetitions with fairly high value treats, but eventually it will become second nature. I'd probably start with him on leash every time you take him out, so he's not able to bolt away, and then praise enthusiastically and reward when he turns towards you.
Another option instead of, or in addition to this is to release him and immediately drop a small handful of treats on the ground just outside the door, so he has to stop to get them.
Forever would have been too short
NAFA: FM, MBDCh-S