Skip to content

Commit 194da78

Browse files
committed
MC-17701: Downloadable Product links
1 parent 5b50a51 commit 194da78

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

app/code/Magento/Downloadable/Setup/UpgradeData.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,11 @@ private function addStoreAndWebsiteUrlsFromScope(Store $scope)
192192
$this->addHost($scope->getBaseUrl(UrlInterface::URL_TYPE_DIRECT_LINK, true));
193193
$this->addHost($scope->getBaseUrl(UrlInterface::URL_TYPE_MEDIA, false));
194194
$this->addHost($scope->getBaseUrl(UrlInterface::URL_TYPE_MEDIA, true));
195-
$this->addHost($scope->getBaseUrl(UrlInterface::URL_TYPE_STATIC, false));
196-
$this->addHost($scope->getBaseUrl(UrlInterface::URL_TYPE_STATIC, true));
195+
196+
try {
197+
$this->addHost($scope->getBaseUrl(UrlInterface::URL_TYPE_STATIC, false));
198+
$this->addHost($scope->getBaseUrl(UrlInterface::URL_TYPE_STATIC, true));
199+
} catch (\UnexpectedValueException $e) {} //@codingStandardsIgnoreLine
197200

198201
try {
199202
$website = $scope->getWebsite();

0 commit comments

Comments
 (0)