diff --git a/app/assets/javascripts/discourse/app/components/header/topic/info.gjs b/app/assets/javascripts/discourse/app/components/header/topic/info.gjs index 1717a5e8c76..391503feb33 100644 --- a/app/assets/javascripts/discourse/app/components/header/topic/info.gjs +++ b/app/assets/javascripts/discourse/app/components/header/topic/info.gjs @@ -139,25 +139,30 @@ export default class Info extends Component { ) }}
- {{#if @topicInfo.category.parentCategory}} - {{#if - (and - @topicInfo.category.parentCategory.parentCategory - this.site.desktopView - ) - }} + + {{#if @topicInfo.category.parentCategory}} + {{#if + (and + @topicInfo.category.parentCategory.parentCategory + this.site.desktopView + ) + }} + {{categoryLink + @topicInfo.category.parentCategory.parentCategory + (hash hideParent="true") + }} + {{/if}} + {{categoryLink - @topicInfo.category.parentCategory.parentCategory + @topicInfo.category.parentCategory (hash hideParent="true") }} {{/if}} - - {{categoryLink - @topicInfo.category.parentCategory - (hash hideParent="true") - }} - {{/if}} - {{categoryLink @topicInfo.category (hash hideParent="true")}} + {{categoryLink @topicInfo.category (hash hideParent="true")}} +
{{/if}}