diff --git a/interface/web/sites/tools.inc.php b/interface/web/sites/tools.inc.php
index 9c722019017def9f3e6c2d339f79e29faba5d50a..66ce39ab15846250f00f6617ba1aae297f81e300 100644
--- a/interface/web/sites/tools.inc.php
+++ b/interface/web/sites/tools.inc.php
@@ -32,7 +32,7 @@ function replacePrefix($name, $dataRecord) {
 	if ($name=="") return "";
 
 	// Array containing keys to search
-	$keywordlist=array('CLIENTNAME','CLIENTID');
+	$keywordlist=array('CLIENTNAME','CLIENTID','DOMAINID');
 
 	// Try to match the key within the string
 	foreach ($keywordlist as $keyword) {
@@ -44,6 +44,9 @@ function replacePrefix($name, $dataRecord) {
 				case 'CLIENTID':
 					$name=str_replace('['.$keyword.']', getClientID($dataRecord),$name);
 				break;
+				case 'DOMAINID':
+					$name=str_replace('['.$keyword.']', $dataRecord['parent_domain_id'],$name);
+				break;
 			}
 		}
 	}