Aberdeen beat Fola Esch 3-1 at Pittodrie on Thursday night in the first leg of their Europa League round-one qualifier.
Shay Logan gave the Dons the lead midway through the second half but the Luxembourg side equalised a couple of minutes later.
The tie had entered injury time when Niall McGinn's deflected effort found the net and Adam Rooney converted a penalty right at the end for the third goal.