You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enhance image URL handling when the image is from DAM inside the editor
- Added logic to extract the original URL from Optimole URLs in the `get_optimized_image_url` method.
- Moved the `is_dam_url` method to the `Optml_Dam_Offload_Utils` trait for better organization.
- Updated the `Normalizer` trait to handle specific URL patterns.
- Introduced new tests for `get_unoptimized_url` to cover various scenarios, including non-Optimole URLs and edge cases.
- Prevented cache clearing actions during tests to avoid errors related to cache compatibility.
https://secure.helpscout.net/conversation/3142052654/476408?viewId=2353196
* TODO: The logic is a mess, we need to refactor at some point.
268
-
* Websites may transition between 'www' subdomains and apex domains, potentially breaking references to hosted images. This can cause issues when attempting to match attachment IDs if images are linked using outdated domains. The logic is checking for alternative domains and consider the use of 'scaled' prefixes in image URLs for large images, which might affect ID matching.
* TODO: The logic is a mess, we need to refactor at some point.
313
+
* Websites may transition between 'www' subdomains and apex domains, potentially breaking references to hosted images. This can cause issues when attempting to match attachment IDs if images are linked using outdated domains. The logic is checking for alternative domains and consider the use of 'scaled' prefixes in image URLs for large images, which might affect ID matching.
0 commit comments