Barcelona progressed thanks to the away goal rule as the first leg had finished 1-1.