mirror of
https://github.com/discourse/discourse.git
synced 2026-03-04 01:15:08 +08:00
The sidebar "New Topic" button in Horizon was passing `this.tag?.id` (a numeric ID) to `composer.openNewTopic()`, which expects a comma-separated string of tag names. This caused two issues: - For non-staff users, `filterTags()` tried to access `.content` on a number, throwing "Cannot read properties of undefined (reading 'filter')" and preventing the composer from opening entirely. - For staff users, `filterTags()` passed the number through, resulting in the numeric ID being displayed as the tag name in the composer. Switching to `this.tag?.name` aligns with the pattern used by the discovery list controller and the composer's expected API. Also adds a system spec covering the tag page → new topic flow. Ref - t/178629 |
||
|---|---|---|
| .. | ||
| discourse | ||
| .gitkeep | ||