Forest left it late to end a 30-year wait for an away win in Europe.