• Resolved kfixx

    (@kfixx)


    Hi,

    I’m using the wp api with advanced custom fields and yoast but these urls don’t seem to be replaced by this plugin. I don’t have a theme because i only use the api, but js and css files are replaced on the normal page.

    Here an example of the json response:

    {
       "id":10,
       "date":"2020-01-10T12:30:54",
       ...
       "acf":{
          "banners":{
             "home_banner":{
                "title":"...",
                "image":{
                   "ID":749,
                   "id":749,
                   "title":"home_header_image2",
                   "filename":"home_header_image2.png",
                   "url":"https:\/\/cms.mydomain.com\/app\/uploads\/2020\/06\/home_header_image2.png",
                   "link":"https:\/\/cms.mydomain.com\/start-page\/home_header_image2\/",
                   }
                },
                "video":"https:\/\/cms.mydomain.com\/app\/uploads\/2020\/06\/video.mp4"
             },
       },
       "yoast_json_ld":[
          {
             "@context":"https:\/\/schema.org",
             "@graph":[
                {
                   "logo":{
                      ...
                      "url":"https:\/\/cms.mydomain.com\/app\/uploads\/2020\/05\/logo.png"

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Anonymous User 16850768

    (@anonymized-16850768)

    This is expected as the CDN Enabler plugin doesn’t currently parse JSON to rewrite the serving URL to the CDN URL.

    Thread Starter kfixx

    (@kfixx)

    Thanks. That makes sense. I’ll handle it in my app.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Urls not replaced in wp-json api and acf’ is closed to new replies.