--- domain.module.old	2008-09-09 21:34:49.000000000 +0600
+++ domain.module	2008-09-11 13:35:31.000000000 +0600
@@ -1014,7 +1014,9 @@ function domain_form_alter($form_id, &$f
     if ($action['query']) {
       $action['path'] .= '?';
     }
-    $form['#action'] =  $_domain['scheme'] .'://'. $_domain['subdomain'] . $action['path'] . $action['query'];
+    if(empty($action["scheme"]) || empty($action["host"])){
+      $form['#action'] =  $_domain['scheme'] .'://'. $_domain['subdomain'] . $action['path'] . $action['query'];
+    }
   }
 
   // Apply to all node editing forms, but make sure we are not on the CCK field configuration form.
