On 29 July 2018, Ljubić made his Hajduk Split debut, coming on as a substitute for Tomislav Duka in a 4–1 defeat against Osijek. Four days later, he got his first start and a European debut in UEFA Europa League second round qualifier against Slavia Sofia. Ljubić had a couple of saves and helped Hajduk reach third qualifying round after a 3–2 win in Sofia.