Commit fcbb31d198a0cbca02668b31beef3e4743e8bc2a
1 parent
908283fe
фикс хлебных крошек (генерация урл)
Showing
1 changed file
with
5 additions
and
1 deletions
Show diff stats
frontend/views/catalog/product.php
... | ... | @@ -41,7 +41,11 @@ FlipclockAsset::register($this); |
41 | 41 | $this->params[ 'breadcrumbs' ][] = [ |
42 | 42 | 'label' => $category->name.' '.$product->brand->name, |
43 | 43 | 'url' => [ |
44 | - 'catalog/'.$category->alias.'/filters:brands='.strtolower($product->brand->name), | |
44 | + 'catalog/category', | |
45 | + 'category' => $category, | |
46 | + 'filters' => [ | |
47 | + 'brands' => [$product->brand->alias] | |
48 | + ] | |
45 | 49 | ], |
46 | 50 | ]; |
47 | 51 | $this->params[ 'breadcrumbs' ][] = $product->fullname . ' #' . $product->enabledVariants[ 0 ]->sku; | ... | ... |