Skip to content

Conversation

@pento
Copy link
Member

@pento pento commented Aug 18, 2025

✨ What's This?

Instead of generating the topic link manually, using the core TopicLink component lets us offload the URL-building logic to core, instead.

However, the link text in the CategoryTopics component also includes the post count, which the core TopicLink component doesn't support. To rectify this, discourse/discourse#34371 adds a yield that we can use to append our additional link text.

@pento pento merged commit 9941be3 into main Aug 18, 2025
5 checks passed
@pento pento deleted the pento/fix-sub-category-topics-links branch August 18, 2025 05:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants