Skip to content

Commit 76fd92b

Browse files
committed
MC-37615: Graphql urlresolver returning Null when using SEO friendly URLs with parameters
1 parent f6c1774 commit 76fd92b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ public function resolve(
6464

6565
$storeId = (int)$context->getExtensionAttributes()->getStore()->getId();
6666
$result = null;
67+
// phpcs:ignore Magento2.Functions.DiscouragedFunction
6768
$url = parse_url($args['url'], PHP_URL_PATH);
6869
if (substr($url, 0, 1) === '/' && $url !== '/') {
6970
$url = ltrim($url, '/');

0 commit comments

Comments
 (0)