Barcelona play La Liga leaders Atletico Madrid on 8 May
Lionel Messi scored two goals as Barcelona beat Getafe to climb to third in the La Liga table, two points behind second-placed Real Madrid.
Messi broke the deadlock before lowly Getafe equalised through Clement Lenglet's own goal.
A mix-up between Sofian Chakla and keeper David Soria restored Barca's lead and Messi made it 3-1.
Enes Unal's penalty gave Getafe hope but goals by Ronald Araujo and Antoine Griezmann sealed the points.
Barcelona are five points behind leaders Atletico Madrid, who they host on 8 May, but have one game in hand.
Earlier in the day, Barca issued a statement about signing up to the European Super League, stating it was a "historic opportunity" to guarantee football's financial sustainability.
On the pitch, Ronald Koeman's side turned on the style in an incident-packed first half which saw Messi hit the bar and the post for the 2021 Copa del Rey winners.
However, they struggled after half-time and lived dangerously until late goals by substitute Araujo and Griezmann, from the penalty spot, secured the win.
Line-upsMatch StatsLive Text
1ter Stegen28Mingueza3Piqué15Lenglet20Roberto21de Jong5Busquets16González18Alba10Messi7Griezmann1ter Stegen28MinguezaSubstituted forUmtitiat 75'minutes3PiquéSubstituted forAraujoat 45'minutesBooked at 68mins
2Dest4Araujo8Pjanic12Puig17Machado Trincão19Fernandes Siqueira23Umtiti24Firpo26Peña27Kourouma Kourouma29De la Fuente36Tenas
13Soria22Suárez2Dakonam21Chakla15Cucurella11Aleñá6Chema20Maksimovic29Iglesias9Rodríguez5Kubo13Soria22Suárez2Dakonam21Chakla15CucurellaSubstituted forAkuruguat 45'minutes11AleñáSubstituted forAbdulaiat 45'minutes6ChemaSubstituted forMiranda Boachoat 76'minutes20MaksimovicSubstituted forArambarriat 45'minutes29Iglesias9RodríguezSubstituted forÜnalat 63'minutes5Kubo
1Yáñez4Etxeita7Mata8Portillo10Ünal18Arambarri19Poveda24Timor32Miranda Boacho35Abdulai39Niang40AkuruguReferee:Jorge Figueroa Vázquez
Home TeamBarcelonaAway TeamGetafePossessionHome81%Away19%ShotsHome9Away5Shots on TargetHome6Away1CornersHome3Away1FoulsHome8Away15
Match ends, Barcelona 5, Getafe 2.