From 37377a43e0ae6e316b0001a6955e0a93c10a7936 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Mon, 27 Oct 2025 05:16:47 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"refactor:=20avoid=20converting=20medi?= =?UTF-8?q?a=E2=80=98s=20relative=20paths=20to=20absolute=20paths=20(#2552?= =?UTF-8?q?)"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit b3d7db3cda006a63cdecd718f97d415eab709dc8. --- _includes/media-url.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/_includes/media-url.html b/_includes/media-url.html index 407d42187..ea4107502 100644 --- a/_includes/media-url.html +++ b/_includes/media-url.html @@ -15,9 +15,7 @@ {%- if url -%} {% unless url contains ':' %} {%- comment -%} Add media resources subpath prefix {%- endcomment -%} - {% if include.subpath %} - {% assign url = include.subpath | append: '/' | append: url %} - {% endif %} + {% assign url = include.subpath | default: '' | append: '/' | append: url %} {%- comment -%} Prepend CND URL {%- endcomment -%} {% if site.cdn %}