Offloaded Images appears as broken on the page in preview mode #801
Labels
bug
This label could be used to identify issues that are caused by a defect in the product.
customer report
Indicates the request came from a customer.
Priority-Medium
Expected resolution time - up to 1 month.
released
Indicate that an issue has been resolved and released in a particular version of the product.
Description
When we offload images on our site and attempt to preview a post containing these images, it can be noticed that all images appear broken on the preview page. This issue occurs because, during the preview, I think WordPress (or don't know if Optimole) automatically replaces the CDN URLs with the original URLs of the images.
To confirm this behavior, you can check the URLs of images that are not offloaded; you'll observe that their preview URLs are also replaced with the original URLs. Since offloaded images are no longer available at their original location, this URL substitution results in broken images in the preview.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet or Help Scout ticket
Ticket - https://secure.helpscout.net/conversation/2586148942/417571
In the Edit mode, images appear correctly -
In preview mode, the image appears as broken-
After publishing, it looks correct again-
Environment info
No response
Is the issue you are reporting a regression
No
The text was updated successfully, but these errors were encountered: