srcset attribute missing Year/Month directories
-
Hello, we’ve noticed that when inserting an image from azure storage, the srcset attribute is missing the year/date portion of the directory for resized versions of the image. The main image src attribute is fine, as is the first image in the srcset attribute (which is the same as the main src attribute), but subsequent images for smaller-sized images are not.
For example, given the following:
<img loading="lazy" width="776" height="506" src="https://media.domain.com/media/2019/01/filename.jpg" alt="" class="wp-image-33" srcset="https://media.domain.com/media/2019/01/filename.jpg 776w, https://media.domain.com/media/filename-300x196.jpg 300w, https://media.domain.com/media/filename-768x501.jpg 768w" sizes="(max-width: 776px) 100vw, 776px">
The last 2 files are missing the year/month portion of the URL, which results in 404 errors at smaller viewport sizes.
We first noticed this with version 4.3.1, but have updated to 4.3.2 and the issue persists.
- The topic ‘srcset attribute missing Year/Month directories’ is closed to new replies.