From c7ebbbb1752c62eea6f3b5e2d68836af561b9973 Mon Sep 17 00:00:00 2001
From: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Date: Mon, 5 Nov 2018 16:34:00 +0000
Subject: [PATCH] Bug 21766: Correct filtering on AUDIO_ALERT_PATH js

I managed to introduce a bad filter whilst backporting bug 15734 to the
18.05.x series. This patch attempts to correct that.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
---
 koha-tmpl/intranet-tmpl/prog/en/includes/js_includes.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/js_includes.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/js_includes.inc
index 81918e9ed1..177d085364 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/includes/js_includes.inc
+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/js_includes.inc
@@ -69,7 +69,7 @@
 [% IF Koha.Preference('AudioAlerts') || AudioAlertsPage %]
     <script type="text/javascript">
         //<![CDATA[
-            var AUDIO_ALERT_PATH = '[% interface | uri %]/[% theme | uri %]/sound/';
+            var AUDIO_ALERT_PATH = '[% interface | url %]/[% theme | uri %]/sound/';
             var AUDIO_ALERTS = JSON.parse( '[% To.json(AudioAlerts.AudioAlerts) %]' );
         //]]>
 
-- 
2.19.1