Fixed picture path in products index

This commit is contained in:
Noah Lancien 2024-04-18 15:18:33 +02:00
parent 0b370c3c82
commit e12283fd12

View file

@ -17,7 +17,7 @@
<a class="card-product d-flex bg-default rounded-4 box-shadow position-md-sticky top-0 mx-auto my-4 overflow-hidden p-0"
href="{{ route('fo.product.show', ['publishedProduct' => $product->slug]) }}">
<div class="position-relative h-100 w-60 overflow-hidden">
<img class="card-img-top object-cover-center w-100 h-100" src="{{ asset($product->sticker_sm) }}"
<img class="card-img-top object-cover-center w-100 h-100" src="/{{ asset($product->sticker_sm) }}"
title="{{ $product->sticker_sm_title }}" alt="{{ $product->sticker_sm_alt }}">
@include('fo.modules.separator', $separatorParams)
</div>