Tarkin: "Are they away?"
Vader:"They just made the jump into hyperspace"
Tarkin:"I'm taking an awful risk Vader, this had better work."
"THIS HAD BETTER WORK", indicates a PLOT POINT.
So when Han tells Leia that their escape worked, she knows better, that of course the bad guys would be tracking them, and that they have to have their last stand simply because R2 has the plans and they will be delivered to the Rebels by the time the Death Star reaches them. So yeah, in a way Leia is leading the Empire to the base simply because the Rebels will have a means of stopping them.
So again, not mch of a plot hole, if you can even consider it that.