Skip to content

Commit dd170ed

Browse files
committed
MC-17700: Downloadable Product links
1 parent ec58fb1 commit dd170ed

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
namespace Magento\Downloadable\Setup\Patch\Data;
99

10+
use Magento\Config\Model\Config\Backend\Admin\Custom;
1011
use Magento\Framework\App\Config\ScopeConfigInterface;
1112
use Magento\Framework\Setup\Patch\DataPatchInterface;
1213
use Magento\Framework\UrlInterface;
@@ -81,7 +82,11 @@ public function __construct(
8182
*/
8283
public function apply()
8384
{
84-
foreach ($this->scopeResolver->getScopes() as $scope) {
85+
$customStoreScope = $this->scopeResolver->getScope(Custom::CONFIG_SCOPE_ID);
86+
$storeScopes = $this->scopeResolver->getScopes();
87+
$allStoreScopes = array_merge($storeScopes, [$customStoreScope]);
88+
89+
foreach ($allStoreScopes as $scope) {
8590
/** @var $scope Store */
8691
$this->addHost($scope->getBaseUrl(UrlInterface::URL_TYPE_WEB, false));
8792
$this->addHost($scope->getBaseUrl(UrlInterface::URL_TYPE_WEB, true));

0 commit comments

Comments
 (0)