fix: imágenes de servicios y promos en chat usan asset() para URL absoluta
El path 'photos/abc.webp' desde /chat/ se resolvía como /chat/photos/... que no existe. asset() genera la URL absoluta correcta desde la raíz del sitio. Se preservan URLs absolutas (http//) sin modificar. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
a9d0787076
commit
343baa9c14
@@ -297,7 +297,7 @@
|
||||
@elseif ($tipoUi === 'card')
|
||||
<div class="max-w-[85%] bg-[#202c33] rounded-xl rounded-tl-sm shadow overflow-hidden">
|
||||
@if (!empty($payload['imagen']))
|
||||
<img src="{{ $payload['imagen'] }}" class="w-full object-cover" style="max-height:130px;">
|
||||
<img src="{{ Str::startsWith($payload['imagen'], ['http','//']) ? $payload['imagen'] : asset($payload['imagen']) }}" class="w-full object-cover" style="max-height:130px;">
|
||||
@endif
|
||||
<div class="px-4 py-3">
|
||||
<p class="text-white font-semibold text-sm">{{ $payload['titulo'] ?? '' }}</p>
|
||||
@@ -338,7 +338,7 @@
|
||||
<div class="flex-shrink-0 bg-[#202c33] rounded-xl shadow overflow-hidden"
|
||||
style="width:180px; scroll-snap-align:start;">
|
||||
@if (!empty($card['imagen']))
|
||||
<img src="{{ $card['imagen'] }}" class="w-full object-cover" style="height:100px;">
|
||||
<img src="{{ Str::startsWith($card['imagen'], ['http','//']) ? $card['imagen'] : asset($card['imagen']) }}" class="w-full object-cover" style="height:100px;">
|
||||
@else
|
||||
<div class="w-full bg-[#2a3942] flex items-center justify-center" style="height:80px;">
|
||||
<svg class="w-8 h-8 text-[#8696a0]" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
|
||||
|
||||
Reference in New Issue
Block a user