diff --git a/interface/web/mail/templates/mail_domain_edit.htm b/interface/web/mail/templates/mail_domain_edit.htm
index 81cdb73b0f494b490aa27fbf34ac85475f882d15..f58c2cece955d7f5875e3eb494317acec0b25f63 100644
--- a/interface/web/mail/templates/mail_domain_edit.htm
+++ b/interface/web/mail/templates/mail_domain_edit.htm
@@ -105,7 +105,7 @@
                         alert("Error creating XMLHTTP-instance");
                         return false;
                 } else {
-                        request.open('POST', '/mail/mail_domain_dkim_create.php', true);
+                        request.open('POST', 'mail/mail_domain_dkim_create.php', true);
                         request.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
                         request.send('domain='+value+'&action='+action+'&pkey='+privatekey);
                         request.onreadystatechange = interpretRequest;