diff --git a/addons/web_editor/static/src/js/editor/image_processing.js b/addons/web_editor/static/src/js/editor/image_processing.js index d22552f4407..1308c23b0e0 100644 --- a/addons/web_editor/static/src/js/editor/image_processing.js +++ b/addons/web_editor/static/src/js/editor/image_processing.js @@ -488,7 +488,13 @@ export async function loadImageInfo(img, rpc, attachmentSrc = '') { // If src was an absolute "external" URL, we consider unlikely that its // relative part matches something from the DB and even if it does, nothing // bad happens, besides using this random image as the original when using - // the options, instead of having no option. + // the options, instead of having no option. Note that we do not want to + // check if the image is local or not here as a previous bug converted some + // local (relative src) images to absolute URL... and that before users had + // setup their website domain. That means they can have an absolute URL that + // looks like "https://mycompany.odoo.com/web/image/123" that leads to a + // "local" image even if the domain name is now "mycompany.be". + // // The "redirect" check is for when it is a redirect image attachment due to // an external URL upload. if (original && original.image_src && !/\/web\/image\/\d+-redirect\//.test(original.image_src)) {