in summer 2017, hajdin's agent raša bebić connected him with spartak subotica. hajdin passed a trial period, spending the complete pre-season with club. after he convinced the management in friendly matches, hajdin signed a four-year professional contract in july 2017. he made his official debut for the club in the first fixture match of the 2017–18 serbian superliga campaign against ofk bačka. he scored his first goal for the club in 1–1 draw to his former club, zemun, on 24 september 2017. he also scored in the last superliga match in 2017, for 1–1 draw to vojvodina on 13 december. during the first half-season with the club, hajdin collected 23 matches in both domestic competitions usually as the first choice under coach aleksandar veselinović, missing the first round cup match against polet lipljan only.