• Inserting an image from the media library in the Gutenberg editor keeps the host URL (does not rewrite it), which is good. However, if the image is changed to a different size in Gutenberg, then the CDN rewrite happens, and the CDN URL for the image is placed into the post content.

    This is problematic for two reasons:

    • It’s breaking our WebP image replacement functionality. Older posts without the CDN URL in the database get processed fine and offer both the WebP and JPG versions (served from the CDN) in the rendered HTML. But posts made since we added the CDN functionality do not get WebP versions offered because the code that adds that option does not work if the image URL it is processing is not from the site domain.
    • If we ever need to change the CDN URL for any reason, we’ll need to do a find and replace in the database since newer posts are getting the CDN URL saved to the database.

    Is there any way to make sure CDN Enabler does not rewrite URLs from within the Gutenberg editor?

    Thanks.

  • The topic ‘Images Replaced in Gutenberg Editor’ is closed to new replies.