In the Support category, user Rene asked if Discourse supports pre-filling topic titles via URL, similar to GetSatisfaction, to automate software release announcements. They also inquired about the stability of using slugs versus numeric IDs in links. User sam shared a meta discussion about this feature, Compose a new pre-filled topic via URL, and advised that using IDs is safer to prevent broken links if titles change.
Rene reported that while the feature worked, specifying the category by ID required trial and error to find the correct number (17). codinghorror suggested that category names should work if unique, especially for subcategories (e.g., product/bugs). Developer techAPJ confirmed they updated the code to support category/subcategory names via a pull request. Rene thanked the team for the quick fix but noted they would continue using IDs for stability. The thread was marked as solved by Rene.
This allowed us an easy convenient way to create that announcement by just clicking the link from my mailbox and it guaranteed that there was no typo in the title so we could already process the url to that post. Is something similar possible with discourse?
that’s exactly what we’re looking for. But it seems the category option does not work for us. Should it be category name or category id. And if it is Id, which is the id of my desired category? I needed to test all kind of numbers till I figured out 17 is category_id I want
It should work with just the category name as long as the category name is unique, e.g. if you have five categories and each of those has a subcategory of “bugs”, enter it as “product/bugs”.
@techapj can you change it so it works this way? Supporting numeric IDs is fine, but the cat/sub strings should work as well…