When having several same-name media items with different extensions, the request extension must be taken into account when picking one of them prior to apply sort order.
Scenario:
Upload two different images with image.png and image.jpg names to Sitecore
Request /-/media/image.png and /-/media/image.jpg
Actual Result:
Both images are the same
Expected Result:
The images are different and corresponding
When having several same-name media items with different extensions, the request extension must be taken into account when picking one of them prior to apply sort order.
Scenario:
image.png
andimage.jpg
names to Sitecore/-/media/image.png
and/-/media/image.jpg
Actual Result: Both images are the same
Expected Result: The images are different and corresponding