If a site is installed in a sub directory so that it doesn't live at "/" on the host, then feedback (and probably NPS) will fail because it sends wp-json requests to /wp-json/, not /sub-directory/wp-json/.
This patch fixes that by prefixing the wp-json path with the site_url().
Install the Crowdsignal Forms plugin and connect it to Crowdsignal
copy build/apifetch.js and includes/frontend/class-crowdsignal-forms-blocks-assets.php into the wp-content/plugins/crowdsignal-forms/ directory, overwriting what was there.
Add a feedback button to a post and send feedback. Make sure it loaded from the right directory.
Also try posting feedback before updating those files and you should see a 404 error in the web network.
If a site is installed in a sub directory so that it doesn't live at "/" on the host, then feedback (and probably NPS) will fail because it sends wp-json requests to /wp-json/, not /sub-directory/wp-json/.
This patch fixes that by prefixing the wp-json path with the site_url().
To test:
npm run build:apifetch
.Also try posting feedback before updating those files and you should see a 404 error in the web network.