NewPath-Consulting / wap-addon-member-directory

Member Directory block add-on for Wild Apricot Press (WAP)
https://newpathconsulting.com/wap
GNU General Public License v3.0
2 stars 1 forks source link

when loading the block under a non standard domain name, the drop down fields in member directory/iframe block settings fail #47

Open asirota opened 1 year ago

asirota commented 1 year ago

If you load the site under a non standard "home page" like https://mydomain.com/~homepage, the wawp JSON api calls fail

The block calls these JSON calls when trying to load one of the drop downs:

https://920.cvdhosting.com/wp-json/wawp/v1/contacts/fields/

rather than

https://920.cvdhosting.com/~mississaugapotte/wp-json/wawp/v1/contacts/fields/

The block plugin is probably retrieving the host name but not the full "home directory" of the website

asirota commented 1 year ago

this is also a problem with the iframe block

asirota commented 1 year ago

Note we can retrieve the correct website "home page" URL from the WP General Settings:

image

Use Site Address if it is different than WordPress Address (URL) since the Site Address will be a specific directory being used and will be needed for the wp-json to work