blocks-everywhere icon indicating copy to clipboard operation
blocks-everywhere copied to clipboard

Content block assumes API URL

Open johngodley opened this issue 2 years ago • 0 comments

The content block makes request to the REST API to get topic details. However, this assumes the path:

https://${ blog }/wp-json/wp/v2/topic?slug=${ encodeURIComponent( slug ) }

It's possible the path is different. For example, if the site is installed in a subdirectory or doesn't have https enabled.

If we use @wordpress/api-fetch then it already knows the REST API URL.

johngodley avatar Dec 09 '22 09:12 johngodley