The film has been shot in Lebanon, Syria, the UK, Canada and India. Indian locations include Gulmarg in Jammu and Kashmir and Punjab’s Malerkotla.
Kabir Khan was keen on shooting those scenes across border, but the unit felt that it wouldn’t be safe to do so. Citing everyone’s concerns, he decided to recreate actual locations in Punjab. He recreated Pakistan in Malerkotla in Punjab.
The location Malerkotla was zeroed down because of its mosque, local people, narrow lanes and overall architecture, which creates the verisimilitude of a town from Pakistan. The area was set up with posters and flags.