It is quite probable (…) that a mosque was first raised during the Sultanate period (...) on the site of the most important temple associated with the life of Rāma, and Mir Baqi just restored that mosque during his occupation of Ayodhyā.
Source, in full
(Nath, 1991, pp. 38, Nath, R. (1991). The Baburi Masjid of Ayodhyā, Historical Research Documentation Programme, Jaipur. quoted in The Ayodhyā Twist: A Hypothesis Modifying the New Consensus about its History Koenraad Elst