Skip to content

Commit 983c931

Browse files
author
Ivan Gavryshko
committed
MAGETWO-45482: Store front category url doesn't include all its parents
- fixed
1 parent ec96377 commit 983c931

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/CatalogUrlRewrite/Model/CategoryUrlPathGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function __construct(
6161
*/
6262
public function getUrlPath($category)
6363
{
64-
if (in_array($category->getParentId(), [Category::ROOT_CATEGORY_ID, Category::TREE_ROOT_ID], true)) {
64+
if (in_array($category->getParentId(), [Category::ROOT_CATEGORY_ID, Category::TREE_ROOT_ID])) {
6565
return '';
6666
}
6767
$path = $category->getUrlPath();

0 commit comments

Comments
 (0)