[-] FO : fixed bug #PSCFV-5324 - Product url rewrite contains "root/home/"
This commit is contained in:
1 parent
1b9a40489f
commit
4854f9137c
1 file changed
+1
@@ -132,6 +132,7 @@ 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)
|
||||||
|
if (!in_array($cat['id_category'], array(1, 2)))//remove root and home category from the URL
|
||||||
$cats[] = $cat['link_rewrite'];
|
$cats[] = $cat['link_rewrite'];
|
||||||
$params['categories'] = implode('/', $cats);
|
$params['categories'] = implode('/', $cats);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user