Quick tip: Admin SSL urls
If you’re building Magento extensions that function in the Magento admin and which have to be used in SSL’d and non-SSL’d environments, you can not use a regular $this->getUrl() call to construct your urls. Instead, use Mage::getSingleton(‘adminhtml/url’)->getUrl(). That way the URL is automatically constructed with either SSL or no SSL.

1 Responses »
Trackbacks