diff --git a/lib/internal/Magento/Framework/Data/Form/Element/Image.php b/lib/internal/Magento/Framework/Data/Form/Element/Image.php index c4d143c05db84..9c3577813ca0d 100644 --- a/lib/internal/Magento/Framework/Data/Form/Element/Image.php +++ b/lib/internal/Magento/Framework/Data/Form/Element/Image.php @@ -50,7 +50,7 @@ public function getElementHtml() $url = $this->_getUrl(); if (!preg_match("/^http\:\/\/|https\:\/\//", $url)) { - $url = $this->_urlBuilder->getBaseUrl('media') . $url; + $url = $this->_urlBuilder->getBaseUrl(['_type' => \Magento\Framework\UrlInterface::URL_TYPE_MEDIA]) . $url; } $html = '