diff options
author | Thomas Decaux <ebuildy@gmail.com> | 2020-04-13 17:48:34 +0300 |
---|---|---|
committer | Thomas Decaux <ebuildy@gmail.com> | 2020-04-13 17:51:51 +0300 |
commit | 3760272baf167f084c2c369f556d9c320b4b2a40 (patch) | |
tree | bb11c3c990b07a64ac230b2f18837df7163ef71d /templates | |
parent | 6f55be1b36d4ffe7aad44c532114aff6f28d2304 (diff) |
Add missing base_dir when adding javascript files
Signed-off-by: Thomas Decaux <ebuildy@gmail.com>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/scripts.twig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/scripts.twig b/templates/scripts.twig index 13a29a3091..c96122c2e6 100644 --- a/templates/scripts.twig +++ b/templates/scripts.twig @@ -1,5 +1,5 @@ {% for file in files %} - <script data-cfasync="false" type="text/javascript" src="js/{{ file.filename }} + <script data-cfasync="false" type="text/javascript" src="{{ base_dir }}js/{{ file.filename }} {{- '.php' in file.filename ? get_common(file.params|merge({'v': version})) : '?v=' ~ version|url_encode }}"></script> {% endfor %} |