Skip to content

Commit d18dfe8

Browse files
committed
MC-17700: Downloadable Product links
1 parent a6b596f commit d18dfe8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

app/code/Magento/Downloadable/Setup/Patch/Data/AddDownloadableHostsConfig.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,11 @@ private function addStoreAndWebsiteUrlsFromScope(Store $scope)
158158
$this->addHost($scope->getBaseUrl(UrlInterface::URL_TYPE_DIRECT_LINK, true));
159159
$this->addHost($scope->getBaseUrl(UrlInterface::URL_TYPE_MEDIA, false));
160160
$this->addHost($scope->getBaseUrl(UrlInterface::URL_TYPE_MEDIA, true));
161-
$this->addHost($scope->getBaseUrl(UrlInterface::URL_TYPE_STATIC, false));
162-
$this->addHost($scope->getBaseUrl(UrlInterface::URL_TYPE_STATIC, true));
161+
162+
try {
163+
$this->addHost($scope->getBaseUrl(UrlInterface::URL_TYPE_STATIC, false));
164+
$this->addHost($scope->getBaseUrl(UrlInterface::URL_TYPE_STATIC, true));
165+
} catch (\UnexpectedValueException $e) {} //@codingStandardsIgnoreLine
163166

164167
try {
165168
$website = $scope->getWebsite();

0 commit comments

Comments
 (0)