Rangers came from 2-0 down to win 5-2 and keep the cinch Premiership title race alive.
Jordan McGhee and Antonio Portales gave Dundee a two-goal advantage before Ross McCausland reduced the deficit just before the break and Cyriel Dessers levelled matters early in the second half.
The Ibrox side went ahead through Todd Cantwell before a late double from Scott Wright extended the scoreline.
Raith Rovers secured a 2-1 win in the first leg of their cinch Premiership play-off semi-final with Partick Thistle.
Scott Brown and Lewis Vaughan were on target for Ian Murray’s men with Blair Alston pulling one back for Thistle.
In the cinch League 1 play-off final, Dumbarton gained a 2-1 home triumph over The Spartans.
Tony Wallace and Finlay Gray found the net with Ayrton Sonkur getting the goal for the visitors.