luci-app-adblock: sync with adblock 2.6.0
[project/luci.git] / applications / luci-app-adblock / luasrc / view / adblock / query.htm
index be60630..ce706e4 100644 (file)
@@ -1,5 +1,4 @@
 <%#
-Copyright 2016 Hannu Nyman
 Copyright 2017 Dirk Brenken (dev@brenken.org)
 This is free software, licensed under the Apache License, Version 2.0
 -%>
@@ -25,7 +24,7 @@ This is free software, licensed under the Apache License, Version 2.0
                        ;
                        input.parentNode.style.display = 'block';
                        input.style.display = 'inline';
-                       stxhr.post('<%=url('admin/services/adblock/advanced/result/')%>' + domain, { token: '<%=token%>' },
+                       stxhr.post('<%=luci.dispatcher.build_url('admin/services/adblock/advanced/result/')%>' + domain, { token: '<%=token%>' },
                                function(x)
                                {
                                        if (x.responseText)