Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 this issue Feb 28, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@asirota
Copy link
Member

asirota commented Feb 28, 2023

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 asirota added the bug Something isn't working label Feb 28, 2023
@asirota asirota changed the title when loading the block under a non standard domain name, the drop down fields in block settings fail when loading the block under a non standard domain name, the drop down fields in member directory/iframe block settings fail Feb 28, 2023
@asirota
Copy link
Member Author

asirota commented Feb 28, 2023

this is also a problem with the iframe block

@asirota
Copy link
Member Author

asirota commented Mar 2, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: 🆕 New
Development

No branches or pull requests

1 participant