Skip to content

Commit c4c583a

Browse files
committed
MAGETWO-86324: PWA URL resolver service
- fix case when canonical path is used as input
1 parent d6d7946 commit c4c583a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function resolve(array $args, ResolverContextInterface $context)
5858
}
5959

6060
/**
61-
* Recursively find the canonical url passing through all redirects
61+
* Find the canonical url passing through all redirects if any
6262
*
6363
* @param string $requestPath
6464
* @return \Magento\UrlRewrite\Service\V1\Data\UrlRewrite|null
@@ -110,7 +110,7 @@ private function findUrlFromTargetPath(string $targetPath)
110110
}
111111

112112
/**
113-
* Sanitizes the type to fit schema specs
113+
* Sanitize the type to fit schema specifications
114114
*
115115
* @param string $type
116116
* @return \Magento\UrlRewrite\Service\V1\Data\UrlRewrite|null

0 commit comments

Comments
 (0)