mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 11:23:25 +08:00
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:
parent
fc2a511ee2
commit
948e283e0f
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user