Skip to content

Commit 643c93e

Browse files
authored
improve check: and try to handle URL by URL rewrites if request path is NULL. (#1149)
1 parent b331f00 commit 643c93e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Model/Product/Url.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function getUrl(Product $product, $params = [])
6262
$routeParams['_scope'] = $urlDataObject->getStoreId();
6363
} else {
6464
$requestPath = $product->getRequestPath();
65-
if ($requestPath === '') {
65+
if (empty($requestPath) && $requestPath !== false) {
6666
$filterData = [
6767
UrlRewrite::ENTITY_ID => $product->getId(),
6868
UrlRewrite::ENTITY_TYPE => ProductUrlRewriteGenerator::ENTITY_TYPE,

0 commit comments

Comments
 (0)