Error in user YAML: (<unknown>): found character that cannot start any token while scanning for the next token at line 3 column 16
---
title: Fix the breadcrumb for products assigned to multiple categories
issue: NEXT-11152
author_github: @Dominik28111
---
- Added parameter
EntityRepositoryInterface
toCore\Content\Category\Service\CategoryBreadcrumbBuilder
constructor. This parameter will be required with 6.4.0. - Added new method
getProductSeoCategory()
toCore\Content\Category\Service\CategoryBreadcrumbBuilder
to get the category for the current sales channel of a product. - Added new runtime field
seoCategory
toCore\Content\Product\SalesChannel\SalesChannelProductEntity
which stores the category for the breadcrumb. - Added parameter
CategoryBreadcrumbBuilder
toCore\Content\Product\SalesChannel\Detail\ProductDetailRoute
constructor. - Changed method
load()
inCore\Content\Product\SalesChannel\Detail\ProductDetailRoute
it sets the seoCategory for the product now.
- Added parameter
CategoryBreadcrumbBuilder
toStorefront\Page\Product\ProductPageLoader
constructor. - Deprecated parameter
navigationTree
inStorefront/Resources/views/storefront/page/content/index.html.twig
. This parameter will be removed in v6.4.0. - Deprecated parameter
navigationTree
,categoryTree
andproduct
inStorefront/Resources/views/storefront/page/product-detail/index.html.twig
. These parameters will be removed in v6.4.0.