Skip to content

Commit 79f2f77

Browse files
committed
Fixed URL retrieving
1 parent 9d1f640 commit 79f2f77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/UrlRewriteGraphQl/Model/Resolver/EntityUrl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ private function findCanonicalUrl(string $requestPath, int $storeId) : ?UrlRewri
100100
$urlRewrite = $this->findUrlFromTargetPath($requestPath, $storeId);
101101
}
102102
if ($urlRewrite && !$urlRewrite->getEntityId() && !$urlRewrite->getIsAutogenerated()) {
103-
$urlRewrite = $this->findUrlFromTargetPath($urlRewrite->getTargetPath());
103+
$urlRewrite = $this->findUrlFromTargetPath($urlRewrite->getTargetPath(), $storeId);
104104
}
105105

106106
return $urlRewrite;

0 commit comments

Comments
 (0)