Originally the mosque backed onto Ibn Tulun 's palace .
A door next to the minbar allowed Ibn Tulun direct entry to the mosque .
Originally the mosque backed onto Ibn Tulun 's palace , and a door next to the minbar allowed him direct entry to the mosque .