[-] FO : fixed bug #PSCFV-5324 - Product url rewrite contains "root/home/"
This commit is contained in:
1 parent
5ee4949e73
commit
a0a6a3d3b6
1 file changed
+2
-1
+2
-1
@@ -132,7 +132,8 @@ class LinkCore
|
|||||||
$params['category'] = (!$category) ? $product->category : $category;
|
$params['category'] = (!$category) ? $product->category : $category;
|
||||||
$cats = array();
|
$cats = array();
|
||||||
foreach ($product->getParentCategories() as $cat)
|
foreach ($product->getParentCategories() as $cat)
|
||||||
$cats[] = $cat['link_rewrite'];
|
if (!in_array($cat['id_category'], array(1, 2)))//remove root and home category from the URL
|
||||||
|
$cats[] = $cat['link_rewrite'];
|
||||||
$params['categories'] = implode('/', $cats);
|
$params['categories'] = implode('/', $cats);
|
||||||
}
|
}
|
||||||
$anchor = $ipa ? $product->getAnchor($ipa) : '';
|
$anchor = $ipa ? $product->getAnchor($ipa) : '';
|
||||||
|
|||||||
Reference in new issue
Block a user