Skip to content

Commit 2665d81

Browse files
committed
MC-20158: Redirects are not supported in urlResolver
- fix test
1 parent 07c8f54 commit 2665d81

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-
$product->getUrlModel()->getUrl($product, ['_ignore_category' => true]);
37+
$url = $product->getUrlModel()->getUrl($product, ['_ignore_category' => true]);
3838

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

0 commit comments

Comments
 (0)