Changed getBaseDomain() to getAssetsUrl in Controller; it now calls Yii::app()->clientScript->getAssetsBaseUrl() which has a list of subdomains (.admin, .assets, etc) to remove