Recently , Iran 's president , Mahmoud Ahmadinejad , contributed to renewed focus on the mahdi , by saying publicly that the mission of the Islamic revolution in Iran is to pave the way for the mahdi 's return , and by visiting the mosque at Jamkaran , on the outskirts of Qom , where , according to one tradition , the vanished imam was last seen .