Revert "Remove ajax=1 flag from printing form urls"

This reverts commit 2a4a18e1a14e9e5ad72e43c4d2d0d41ed21670b2.
Remove ajax=1 flag from printing form urls (reverted from commit 2a4a18e1a14e9e5ad72e43c4d2d0d41ed21670b2)