Skip to content

Commit f19611c

Browse files
pradeep.rauthanpradeep.rauthan
authored andcommitted
ACP2E-127:Asynchronous order emails from non-default websites has default website logo URL
1 parent 9b8d557 commit f19611c

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

app/code/Magento/Email/Model/AbstractTemplate.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -771,6 +771,10 @@ public function getUrl(Store $store, $route = '', $params = [])
771771
if ($this->storeManager->getStore()->getId() != $store->getId()) {
772772
$params['_scope_to_url'] = true;
773773
}
774+
775+
// Pass extra parameter to distinguish stores urls for property Magento\Framework\Url $cacheUrl in multi-store environment
776+
$params['_escape_params'] = $store->getCode();
777+
774778
return $url->getUrl($route, $params);
775779
}
776780
}

app/code/Magento/Email/Model/Template/Filter.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,10 @@ public function storeDirective($construction)
591591
unset($params['url']);
592592
}
593593

594+
// Pass extra parameter to distinguish stores urls for property Magento\Framework\Url $cacheUrl in multi-store environment
595+
$this->urlModel->setScope($this->_storeManager->getStore());
596+
$params['_escape_params'] = $this->_storeManager->getStore()->getCode();
597+
594598
return $this->urlModel->getUrl($path, $params);
595599
}
596600

0 commit comments

Comments
 (0)