diff --git a/files/templates/default.html b/files/templates/default.html
index f5eb2c9543..ee9f1e86c5 100644
--- a/files/templates/default.html
+++ b/files/templates/default.html
@@ -44,7 +44,7 @@
{%- if not v and os_path.exists(path ~ "/cached.webp") -%}
{% set banner_url = 'cached.webp' | asset_siteimg %}
{% elif os_path.exists(path ~ "/banners") -%}
- {% set banner_url = SITE_FULL_IMAGES ~ macros.random_image("assets/images/" ~ SITE_NAME ~ "/banners") %}
+ {% set banner_url = macros.random_image("assets/images/" ~ SITE_NAME ~ "/banners") %}
{% else -%}
{% set banner_url = 'banner.webp' | asset_siteimg %}
{% endif %}
diff --git a/files/templates/sidebar_WPD.html b/files/templates/sidebar_WPD.html
index 0a3f41bc72..106b81d2d0 100644
--- a/files/templates/sidebar_WPD.html
+++ b/files/templates/sidebar_WPD.html
@@ -11,12 +11,12 @@
{%- elif v -%}
{%- set image = macros.random_image("assets/images/" ~ SITE_NAME ~ "/sidebar") -%}
{%- else -%}
- {%- set image = '/i/' ~ SITE_NAME ~ '/sidebar.webp?x=6' -%}
+ {%- set image = SITE_FULL_IMAGES ~ '/i/' ~ SITE_NAME ~ '/sidebar.webp?x=6' -%}
{%- endif -%}
{% if request.path != '/sidebar' %}
-
+
{% endif %}
diff --git a/files/templates/sidebar_rDrama.html b/files/templates/sidebar_rDrama.html
index 101ffec661..2d39b542e5 100644
--- a/files/templates/sidebar_rDrama.html
+++ b/files/templates/sidebar_rDrama.html
@@ -7,7 +7,7 @@
{% if sub %}
- {% set image=sub.sidebar_url %}
+ {% set image = sub.sidebar_url %}
{% elif IS_EVENT() %}
{% set image = macros.random_image("assets/events/" ~ IS_EVENT() ~ "/images/sidebar") %}
{% else %}
@@ -21,7 +21,7 @@
{% elif not (sub and sub.name == 'chudrama' and v and not v.can_see_chudrama) %}
-
+
{% endif %}
{% endif %}
diff --git a/files/templates/util/macros.html b/files/templates/util/macros.html
index e2e7f7dc52..8446d11247 100644
--- a/files/templates/util/macros.html
+++ b/files/templates/util/macros.html
@@ -5,7 +5,7 @@
{%- endmacro -%}
{%- macro random_image(path) -%}
- {{- "/" ~ path ~ "/" ~ listdir('files/' ~ path)|random() ~ '?x=6' -}}
+ {{- SITE_FULL_IMAGES ~ "/" ~ path ~ "/" ~ listdir('files/' ~ path)|random() ~ '?x=6' -}}
{%- endmacro -%}
{% macro post_meta(p) %}