Use CDN media URLs in Post Editor
-
Hi there,
I’m running into a weird situation with a multisite. In short, all of the images are pulling from the same S3 bucket and that works great for displaying them on the frontend and in the Media Library. However, when someone is authoring a post the image does not display in the editor because it’s looking for the origin files.
As an example, here would be the URL where you can find the image and what is displayed on all of the frontends:
example.com/wp-content/uploads/sites/6/2020/10/just-a-picture.jpg
In the post editor, it’s looking for:
example.com/siteslug/wp-content/uploads/sites/6/2020/10/just-a-picture.jpg
, which doesn’t exist at that path since it’s uploaded directly to S3.Is there some way I can force the WordPress editor to omit the site slug in the URLs so it uses the CDN url for an upload?
Thank you!
- The topic ‘Use CDN media URLs in Post Editor’ is closed to new replies.