Skip to content

Commit f479933

Browse files
author
Prabhu Ram
committed
PWA-1319: [EY] Routable Interface in GraphQL
- Addressed review comments
1 parent fc9cadd commit f479933

File tree

1 file changed

+4
-1
lines changed
  • app/code/Magento/UrlRewriteGraphQl/Model/Resolver

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,10 @@ public function resolve(
5858
);
5959

6060
if ($resultArray) {
61-
return $this->entityDataProviderComposite->getData($resultArray['type'], (int)$resultArray['id'], $info);
61+
$result = $this->entityDataProviderComposite->getData($resultArray['type'], (int)$resultArray['id'], $info);
62+
$result['redirect_code'] = $resultArray['redirect_code'];
63+
$result['relative_url'] = $resultArray['relative_url'];
64+
return $result;
6265
}
6366
return null;
6467
}

0 commit comments

Comments
 (0)