Iudex
Forum Replies Created
-
@sareiodata Seems I was a bit too quick in my reply. Not resolved. Same error.
- This reply was modified 1 year, 7 months ago by Iudex.
Seems like this is working fine!
The error is displayed in the console, yes. I have checked what get_rest_url() returns and can confirm that TranslatePress adds the language code as the slug in the returned URL. This will make plugins using get_rest_url() unsuable. And I find no way to disable it in TranslatePress. Already tried excluding the API URLs in TranslatePress, but doesn’t seem to work for that function.
The plugin is using the get_rest_url() function, and when TranslatePress is used this URL is returned with a language code and therefore returning a link that doesn’t work.
Thanks for the quick reply. I already tried setting all kinds of variations of the URL that is used for the REST API namespace without any luck. Even the page that calls the REST API. But even if I already added all kinds of variations, shouldn’t
/wp-json/*be enough?Unfortunately neither works. Somehow it seems that it doesn’t apply for API calls. I still get an “Unauthorized” error in the console, with the link to the API with the language code in the URL (/en/wp-json/….).
- This reply was modified 1 year, 9 months ago by Iudex.