mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
#2057 [cats] Breadcrump links are not SEO friendly
This commit is contained in:
parent
e442a54229
commit
594ca76ada
@ -260,6 +260,7 @@ class AdvsController extends PublicController
|
||||
$mainCats[] = [
|
||||
'id' => $current_cat->id,
|
||||
'val' => $current_cat->name,
|
||||
'slug' => $current_cat->slug,
|
||||
];
|
||||
$subCats = $this->category_repository->getSubCatById($categoryId->id);
|
||||
} else {
|
||||
|
||||
@ -177,6 +177,7 @@ class CategoryModel extends CatsCategoryEntryModel implements CategoryInterface
|
||||
$new = array();
|
||||
$new['id'] = $main->id;
|
||||
$new['val'] = $main->name;
|
||||
$new['slug'] = $main->slug;
|
||||
$categories[] = $new;
|
||||
if ($main->parent_category_id != null) {
|
||||
$id = $main->parent_category_id;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user