diff --git a/cps/templates/tasks.html b/cps/templates/tasks.html
index 6fe2f6ae..3ffd48a3 100644
--- a/cps/templates/tasks.html
+++ b/cps/templates/tasks.html
@@ -5,7 +5,7 @@
{% block body %}
{{_('Tasks list')}}
-
+
{% if g.user.role_admin() %}
@@ -37,7 +37,7 @@
setInterval(function() {
$.ajax({
method:"get",
- url: "{{'/ajax/emailstat'}}",
+ url: "{{ url_for('get_email_status_json')}}",
async: true,
timeout: 900,
success:function(data){