diff --git a/app/assets/javascripts/discourse/app/components/discovery/categories-display.gjs b/app/assets/javascripts/discourse/app/components/discovery/categories-display.gjs index aaea91723ae..f1679b5db85 100644 --- a/app/assets/javascripts/discourse/app/components/discovery/categories-display.gjs +++ b/app/assets/javascripts/discourse/app/components/discovery/categories-display.gjs @@ -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 {