George Furbank's 79th-minute try helped Northampton stave off a shock defeat by Gloucester as the Saints won 36-32 on Saturday to secure a home semifinal in the English Prem playoffs.
The late score by the England fullback, who will play for Harlequins next season, guaranteed Northampton will stay at Franklin's Gardens for their semifinal on June 12.
Northampton's tries came from George Hendy, Rory Hutchinson, Tommy Freeman, Sam Graham, Furbank and Fin Smith, with England flyhalf Smith adding three conversions.
Deian Gwynne, Ollie Thorley, Seb Atkinson, Max Llewellyn and Ben Loader scored Gloucester's tries, with Charlie Atkinson converting two and landing a penalty as well.
An entertaining first half ended all square at 19-19 and Gloucester were on course of victory when Atkinson kicked his penalty before Furbank had the final word.
But Northampton director of rugby Phil Dowson was frustrated by his side's error-strewn display.
"I'm a bit annoyed at the moment as we weren't at it today as there were loads of uncharacteristic errors and it didn't look as though we had the right mindset," he said.
"It was very hard work and Gloucester played well but we weren't clinical or precise enough, but obviously I'm pleased to secure a home semifinal."
Saracens boss Mark McCall's final home game in charge ended in a 26-12 London derby win over Harlequins that left his side on the verge of playoff qualification.
McCall, 58, is stepping down at the end of the season after 17 years at Saracens, 15 as director of rugby.
His time in charge has yielded six Prem titles and three European crowns. And another trophy remains a possibility, with next Saturday's clash against Exeter on the last day of the regular season a shoot-out for fourth place.
"It's never been about one person. It's never been about me, ever," said McCall.
This was Saracens' fifth successive win and former Ireland centre McCall added: "We're on this lovely run at the moment and every game presents a different kind of challenge."
