Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Change image url tag structure

Paweł Kowalewski162a260ea347
diff --git a/saleor/product/templates/product/details.html b/saleor/product/templates/product/details.html
index 372688e05a..7e2e4f113b 100644
--- a/saleor/product/templates/product/details.html
+++ b/saleor/product/templates/product/details.html
@@ -112,7 +112,7 @@
</div>
<div class="modal-body">
- <img class="img-responsive" src="" data-src="{{ MEDIA_URL }}{{ image.image }}" alt="">
+ <img class="img-responsive" src="" data-src="{{ image.image.url }}" alt="">
</div>
</div>
</div>
@@ -129,7 +129,7 @@
<div class="product-gallery row">
{% for image in images %}
- <a href="{{ MEDIA_URL }}{{ image.image }}" target="_blank" class="product-gallery-item col-xs-6 col-md-3">
+ <a href="{{ image.image.url }}" target="_blank" class="product-gallery-item col-xs-6 col-md-3">
<img class="thumbnail img-responsive" src="{{ image|at_size:"small" }}" alt="">
</a>
{% endfor %}