Magento 2.4.3 Product Images – Fix Incorrect Media URLs

image-urlmagento2product-images

I have recently installed a Magento 2.4.3 version and for some reason, the product images are not displaying correctly on the frontend.

The source URL in Magento is displaying: https://4youshop.online/media/catalog/producth/i/high_68271040_0971007033.jpg

the correct URL is:
https://4youshop.online/media/catalog/product/h/i/high_68271040_0971007033.jpg

As you guys can see, Magento is missing the final slash after the product.

We have tried multiple things:

  • Delete all cache
  • Flush all cache
  • Delete all static files
  • Regenerate all static files
  • Resize all image files
  • Set secure and unsecured URL

Please assist! Also, be aware that we have multiple storefronts and multiple store URLs. None of them seem to work and all have the same problem.

Thank you!

Best Answer

select * from core_config_data where path like '%base%url%';  

Check with this what value you are getting.

Did you add a slash at the end of Base URL in admin config interface for media setting.

Related Topic