Skip to content

Commit 37377a4

Browse files
committed
Revert "refactor: avoid converting media‘s relative paths to absolute paths (#2552)"
This reverts commit b3d7db3.
1 parent 7f35d8e commit 37377a4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

_includes/media-url.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@
1515
{%- if url -%}
1616
{% unless url contains ':' %}
1717
{%- comment -%} Add media resources subpath prefix {%- endcomment -%}
18-
{% if include.subpath %}
19-
{% assign url = include.subpath | append: '/' | append: url %}
20-
{% endif %}
18+
{% assign url = include.subpath | default: '' | append: '/' | append: url %}
2119

2220
{%- comment -%} Prepend CND URL {%- endcomment -%}
2321
{% if site.cdn %}

0 commit comments

Comments
 (0)