Explorar o código

fix(widget): use absolute image path for Hero Carousel

relURL does not function properly in style tag under certain conditions
George Cushen %!s(int64=6) %!d(string=hai) anos
pai
achega
35d79b42a3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      layouts/partials/widgets/hero_carousel.html

+ 1 - 1
layouts/partials/widgets/hero_carousel.html

@@ -20,7 +20,7 @@
       {{ if $item.overlay_img }}
       background-image:
       {{ if $item.overlay_filter }}linear-gradient(rgba(0, 0, 0, {{ $item.overlay_filter }}), rgba(0, 0, 0, {{ $item.overlay_filter }})), {{ end }}
-      url('{{ printf "img/%s" $item.overlay_img | relURL }}');
+      url('{{ printf "/img/%s" $item.overlay_img | absURL }}');
       {{ end }}
       ;">
       <div class="container" style="text-align: {{$item.align | default "left"}};">