Skip to content

Commit 9735ea8

Browse files
committed
MC-21811: Canonical_url displays the backend domain instead of relative
- return canonical url without the domain and path
1 parent 42bb373 commit 9735ea8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/CatalogGraphQl/Model/Resolver/Product/CanonicalUrl.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ public function resolve(
3434

3535
/* @var $product Product */
3636
$product = $value['model'];
37-
$url = $product->getUrlModel()->getUrl($product, ['_ignore_category' => true]);
37+
$product->getUrlModel()->getUrl($product, ['_ignore_category' => true]);
3838

39-
return $url;
39+
return $product->getRequestPath();
4040
}
4141
}

0 commit comments

Comments
 (0)