Skip to content

Commit 33318df

Browse files
committed
ACP2E-1512: Env variable config not working for store views with capital letters in the code
fixed secondary store redirect issue
1 parent aa76e7a commit 33318df

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/internal/Magento/Framework/App/Config.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ public function clean()
125125
*/
126126
public function get($configType, $path = '', $default = null)
127127
{
128+
$path = strtolower($path);
128129
$result = null;
129130
if (isset($this->types[$configType])) {
130131
$result = $this->types[$configType]->get($path);

lib/internal/Magento/Framework/App/Config/ScopeCodeResolver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ public function resolve($scopeType, $scopeCode)
5959
$scopeCode = $resolverScopeCode;
6060
}
6161

62-
$this->resolvedScopeCodes[$scopeType][$scopeCode] = $resolverScopeCode;
62+
$this->resolvedScopeCodes[$scopeType][$scopeCode] = strtolower($resolverScopeCode);
6363

64-
return $resolverScopeCode;
64+
return $this->resolvedScopeCodes[$scopeType][$scopeCode];
6565
}
6666

6767
/**

0 commit comments

Comments
 (0)