Doncaster's 3-1 defeat at Crewe and Blackpool's 4-0 thumping at home to champions Wigan means neither can catch Micky Mellon's side with a game left.
But there was an underwhelming feeling as they had to do it with help from their rivals, after suffering a club record 13th home league defeat of the season.
Town seemed dead and buried after goals from Jack Baldwin (42) and Lee Angol (46 and 69) left them trailing 3-0.
But substitute Jean-Louis Akpa Akpro inspired a comeback by scoring on 74 then setting up headers for Andy Mangan (85) and Jack Grimmer (90).
But former Town winger Jon Taylor came off the bench to grab a dramatic winner in the third minute of time added on.
Midfielder Ian Black was sent off in the fifth minute of stoppage time.

1. b5b3103e-5c16-4a98-90ea-d8f25f61e00f.jpg

2. 45c556f1-ba7d-46c1-98fc-5c978fcfa7ce.jpg

3. 8475cd1a-9467-454e-ba48-3b86abadc1fa.jpg

4. cc19f931-bdee-4db3-ab94-57ce175a6611.jpg
1 / 3

