From 35d79b42a376a29b8d6285cbd5471cd46fe48e51 Mon Sep 17 00:00:00 2001 From: George Cushen Date: Sat, 19 Jan 2019 20:42:52 +0000 Subject: [PATCH] fix(widget): use absolute image path for Hero Carousel relURL does not function properly in style tag under certain conditions --- layouts/partials/widgets/hero_carousel.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/widgets/hero_carousel.html b/layouts/partials/widgets/hero_carousel.html index 8de5f424..e3da8da7 100644 --- a/layouts/partials/widgets/hero_carousel.html +++ b/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 }} ;">