app/code/community/Nexcessnet/Turpentine/Model/Observer/Esi.php
protected function _fixupUencUrl($uencUrl) {
        $esiHelper = Mage::helper('turpentine/esi');
        $corsOrigin = $esiHelper->getCorsOrigin();
        if ($corsOrigin != $esiHelper->getCorsOrigin($uencUrl)) {
            return $corsOrigin.parse_url($uencUrl, PHP_URL_PATH);
        } else {
            return $uencUrl;
        }
    }
protected function _fixupUencUrl($uencUrl) {
        $esiHelper = Mage::helper('turpentine/esi');
        $corsOrigin = $esiHelper->getCorsOrigin();
        if ($corsOrigin != $esiHelper->getCorsOrigin($uencUrl)) {
            return $corsOrigin.parse_url($uencUrl, PHP_URL_PATH);
        } else {
            return $uencUrl;
        }
    }
protected function _fixupUencUrl ( $ uencUrl ) { $ esiHelper = Mage :: helper ( 'turpentine/esi' ) ; $ corsOrigin = $ esiHelper -> getCorsOrigin ( ) ; if ( $ corsOrigin != $ esiHelper -> getCorsOrigin ( $ uencUrl ) ) { return $ corsOrigin . parse_url ( $ uencUrl , PHP_URL_PATH ) ; } else { return $ uencUrl ; } }
Fix a URL to ensure it uses Magento's base URL instead of the backend
URL

@param  string $uencUrl
@return string
Fix a URL to ensure it uses Magento s base URL instead of the backend URL