FIX: Use correct styles on category pages (#29588)

Multiple category styles can be used on the same site. The category and
subcategories page will use the "desktop_category_page_style" setting
and individual category pages will use the style selected in settings,
if any.

Commit c1f078ca tried to use the same style for both the category and
subcategories page, but the route matching did not take into account
the "discovery.categoryAll" and "discovery.categoryNone" variants of
the "discovery.category" route.
This commit is contained in:
Bianca Nenciu
2024-11-05 17:51:22 +02:00
committed by GitHub
parent fc2a511ee2
commit 948e283e0f

View File

@@ -83,7 +83,7 @@ export default class CategoriesDisplay extends Component {
get categoriesComponent() {
if (
this.args.parentCategory &&
this.router.currentRouteName === "discovery.category"
this.router.currentRouteName !== "discovery.subcategories"
) {
return this.#componentForSubcategories;
} else {