Skip to content

Commit 64f340f

Browse files
committed
Fix DynamicStorage entity_type filtering to prevent CMS/product ID collision (magento#39968)
1 parent 4f82be7 commit 64f340f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/code/Magento/CatalogUrlRewrite/Model/Storage/DynamicStorage.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ private function findProductRewriteByRequestPath(array $data): ?array
165165

166166
$productUrl = $this->getBaseName($requestPath);
167167
$data[UrlRewrite::REQUEST_PATH] = [$productUrl];
168+
$data[UrlRewrite::ENTITY_TYPE] = 'product';
168169

169170
$productFromDb = $this->connection->fetchRow($this->prepareSelect($data));
170171
if ($productFromDb === false) {

0 commit comments

Comments
 (0)