Skip to content

Commit f806391

Browse files
author
Roman Lytvynenko
committed
MC-18144: Full page cache issue with non-default store view
1 parent 7a4224c commit f806391

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Store/App/Action/Plugin/Context.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ private function updateContext(StoreInterface $store)
137137
$this->httpContext->setValue(
138138
StoreManagerInterface::CONTEXT_STORE,
139139
$store->getCode(),
140-
$store->isUseStoreInUrl() ? $store->getCode() : $this->storeManager->getDefaultStoreView()->getCode()
140+
$store->isUseStoreInUrl() ? $store->getCode() : $defaultStore->getCode()
141141
);
142142

143143
$this->httpContext->setValue(

0 commit comments

Comments
 (0)