mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 22:26:10 +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…
x
Reference in New Issue
Block a user