 On 18 June 2016, Hansen joined German Bundesliga side FC Ingolstadt 04 on a four-year-deal.Hansen made his league debut by starting in a 0–2 home defeat by FC Augsburg on 5 November 2016.Hansen joined Dutch club Heerenveen on loan for the 2017–18 season.