Fix resources URL not being printed correctly

If there was any parameters in the URL it would not work as the `&` would have been printed as `&`, see similar issue in the previous commit
This commit is contained in:
Molkobain
2021-07-01 09:54:48 +02:00
parent e46743af2a
commit 3b3f1806ce

View File

@@ -13,7 +13,7 @@
{% endif %}
<title>{{ aPage.sTitle }}</title>
{% if aPage.sFaviconUrl is defined %}
<link rel="shortcut icon" href="{{ aPage.sFaviconUrl|raw|add_itop_version }}">
<link rel="shortcut icon" href="{{ aPage.sFaviconUrl|add_itop_version|raw }}">
{% endif %}
<link rel="search" type="application/opensearchdescription+xml" title="iTop" href="{{ aPage.sAbsoluteUrlAppRoot }}pages/opensearch.xml.php">
@@ -23,7 +23,7 @@
{% block iboPageCssFiles %}
{% for aCssFileData in aPage.aCssFiles %}
{% if aCssFileData['condition'] != '' %}<!--[if {{ aCssFileData['condition'] }}]>{% endif %}
<link type="text/css" href="{{ aCssFileData['link']|raw|add_itop_version }}" rel="stylesheet">
<link type="text/css" href="{{ aCssFileData['link']|add_itop_version|raw }}" rel="stylesheet">
{% if aCssFileData['condition'] != '' %}<![endif]-->{% endif %}
{% endfor %}
{% endblock %}
@@ -59,7 +59,7 @@
{% endif %}
{% block iboPageJsFiles %}
{% for sJsFile in aPage.aJsFiles %}
<script type="text/javascript" src="{{ sJsFile|raw|add_itop_version }}"></script>
<script type="text/javascript" src="{{ sJsFile|add_itop_version|raw }}"></script>
{% endfor %}
{% endblock %}