Ninja forms gutenberg block is empty on a Bedrock installation.
I use Bedrock as a basis for my WordPress installations. When using your gutenberg block the block renders an iFrame pointing to get_site_url() in combination with a query var
get_site_url() in the case of bedrock points to yourwebsite.test/wp/ while get_home_url() points to yourwebsite.test/
This results in an empty iframe on bedrock installations.
Steps to reproduce:
- install Bedrock as a basis for your WordPress installation
- Install Ninja Forms
- Create a page and try to place the ninja forms block and select the default form.
- note that the block is empty.
I found that changing
'siteUrl' => get_site_url() to
'siteUrl' => get_home_url() in formBlock.php on rule 65 fixes my issue and renders the form in the iframe on both vanilla WordPress installations and Bedrock installations as well.