Have url for creating topic with specific title

AI-generated summary

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.

Hey guys,

When we release a new version of our software we need to post an announcement to our forum like I did now manually at Gradle 2.4 released - Build Tool - Gradle Forums

Before moving to discourse we used getsatisfaction. GS allowed us to prefil the title of a topic we create by offering a URL like this:

Redirecting...
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?

One other question: is it safe to just link to Gradle 2.4 released - Build Tool - Gradle Forums instead of Gradle 2.4 released - Build Tool - Gradle Forums or can there be any trouble with this not always being support (given that the topic title is only used once)?

Yeah @techAPJ recently added this

Ideally you should link with ids, if the slug changes when people change titles, links can break

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…

Agreed, made it so that URL supports category/subcategory name like category=product/bugs

https://github.com/discourse/discourse/pull/3434

thanks for the quick fix. but I stay with the id for now :wink:

Is this complete and can be closed, then?

from my side it is solved