getNode('default/'.Mage_Core_Model_Store::XML_PATH_UNSECURE_BASE_URL); $defaultSecure = (string) Mage::getConfig()->getNode('default/'.Mage_Core_Model_Store::XML_PATH_SECURE_BASE_URL); if ($defaultSecure == '{{base_url}}' || $defaultUnsecure == '{{base_url}}') { return $this->getUrl('adminhtml/system_config/edit', array('section'=>'web')); } $configData = Mage::getModel('core/config_data'); $dataCollection = $configData->getCollection() ->addValueFilter('{{base_url}}'); $url = false; foreach ($dataCollection as $data) { if ($data->getScope() == 'stores') { $code = Mage::app()->getStore($data->getScopeId())->getCode(); $url = $this->getUrl('adminhtml/system_config/edit', array('section'=>'web', 'store'=>$code)); } if ($data->getScope() == 'websites') { $code = Mage::app()->getWebsite($data->getScopeId())->getCode(); $url = $this->getUrl('adminhtml/system_config/edit', array('section'=>'web', 'website'=>$code)); } if ($url) { return $url; } } return $url; } }