Skip to content

Commit 3a4b706

Browse files
BB-25603: SVG icons are not displayed on websites configured in sub-folders
1 parent 1ac613a commit 3a4b706

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Oro/Bundle/UIBundle/Resources/views/layouts/renderIcon.html.twig

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,14 @@
44
{%- macro getThemeSpriteUrl() -%}
55
{% set layoutContext = get_layout_context() %}
66
{% set theme = layoutContext.theme %}
7-
{% set basePath = app.request.basePath|trim %}
87
{% set themIconFilename = oro_is_rtl_mode() ? 'theme-icons.rtl.svg' : 'theme-icons.svg' %}
9-
{{- asset(basePath ~ '/build/' ~ theme ~ '/svg-icons/' ~ themIconFilename) -}}
8+
{{- asset('build/' ~ theme ~ '/svg-icons/' ~ themIconFilename) -}}
109
{%- endmacro -%}
1110

1211
{%- macro getThemeSpriteMetadata() -%}
1312
{% set layoutContext = get_layout_context() %}
1413
{% set theme = layoutContext.theme %}
15-
{% set basePath = app.request.basePath|trim %}
16-
{{- asset(basePath ~ '/build/' ~ theme ~ '/svg-icons/icons-metadata.json') -}}
14+
{{- asset('build/' ~ theme ~ '/svg-icons/icons-metadata.json') -}}
1715
{%- endmacro -%}
1816

1917
{#

0 commit comments

Comments
 (0)