Skip to content

Commit

Permalink
#11460: [ISSUE-11140][BUGFIX] Skip store code admin from being detect…
Browse files Browse the repository at this point in the history
…ed in case of store code in url configured

 - fixed static tests
  • Loading branch information
Oleksii Korshenko committed Jan 24, 2018
1 parent ef6bada commit 809ec05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/Magento/Store/App/Request/PathInfoProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function process(\Magento\Framework\App\RequestInterface $request, $pathI
}

if ($store->isUseStoreInUrl()) {
if (!$request->isDirectAccessFrontendName($storeCode) && $storeCode != Store::ADMIN_CODE ) {
if (!$request->isDirectAccessFrontendName($storeCode) && $storeCode != Store::ADMIN_CODE) {
$this->storeManager->setCurrentStore($store->getCode());
$pathInfo = '/' . (isset($pathParts[1]) ? $pathParts[1] : '');
return $pathInfo;
Expand Down

0 comments on commit 809ec05

Please sign in to comment.