In the explicit-noun phrase أَبْوَابُ الْمَسَاجِدِ, 'the doors of the mosques,' what is the correct form when the muḍāf ilayh is replaced by a pronoun?

Practical Exercises with Pronouns in the Iḍāfah