# Have url for creating topic with specific title

**URL:** https://meta.discourse.org/t/have-url-for-creating-topic-with-specific-title/28327
**Category:** Support
**Created:** [5 במאי,‏ 2015,‏ 10:21am UTC](https://meta.discourse.org/t/have-url-for-creating-topic-with-specific-title/28327 "2015-05-05T10:21:12Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Rene](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rene/32/115724_2.png) [@Rene](https://meta.discourse.org/u/Rene)
#### Post date: [5 במאי,‏ 2015,‏ 10:21am UTC](https://meta.discourse.org/t/have-url-for-creating-topic-with-specific-title/28327/1 "2015-05-05T10:21:12Z")

</div>

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](https://discuss.gradle.org/t/gradle-2-4-released/9471)

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...](http://my-forum.org/gradle/topics/new?topic%5Bsubject%5D=Gradle+2.4+released&topic%5Bstyle%5D=update)
```
 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](https://discuss.gradle.org/t/gradle-2-4-released) instead of [Gradle 2.4 released - Build Tool - Gradle Forums](https://discuss.gradle.org/t/gradle-2-4-released/9471) or can there be any trouble with this not always being support (given that the topic title is only used once)?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [5 במאי,‏ 2015,‏ 11:17am UTC](https://meta.discourse.org/t/have-url-for-creating-topic-with-specific-title/28327/2 "2015-05-05T11:17:31Z")

</div>

Yeah @techAPJ recently added this

> [@Creating a link to start a new topic with pre-filled information](https://meta.discourse.org/t/compose-a-new-pre-filled-topic-via-url/28074):
>
> bookmark This documentation explains how to create a link that starts a new topic in Discourse with pre-filled information. person_raising_hand Required user level: All users Sometimes you may want to provide users with a link that opens a new topic composer with certain information pre-filled. This can be useful for various use cases including bug report templates, feature requests, or standardized posts. Constructing the URL Base URL To compose a new pre-filled topic with no extra i…

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

---

<div class="post-metadata">

### Author: ![Rene](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rene/32/115724_2.png) [@Rene](https://meta.discourse.org/u/Rene)
#### Post date: [5 במאי,‏ 2015,‏ 2:29pm UTC](https://meta.discourse.org/t/have-url-for-creating-topic-with-specific-title/28327/3 "2015-05-05T14:29:56Z")

</div>

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

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [6 במאי,‏ 2015,‏ 1:43am UTC](https://meta.discourse.org/t/have-url-for-creating-topic-with-specific-title/28327/4 "2015-05-06T01:43:13Z")

</div>

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…

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [6 במאי,‏ 2015,‏ 5:49pm UTC](https://meta.discourse.org/t/have-url-for-creating-topic-with-specific-title/28327/5 "2015-05-06T17:49:19Z")

</div>

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

[https://github.com/discourse/discourse/pull/3434](https://github.com/discourse/discourse/pull/3434)

---

<div class="post-metadata">

### Author: ![Rene](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rene/32/115724_2.png) [@Rene](https://meta.discourse.org/u/Rene)
#### Post date: [6 במאי,‏ 2015,‏ 6:12pm UTC](https://meta.discourse.org/t/have-url-for-creating-topic-with-specific-title/28327/6 "2015-05-06T18:12:09Z")

</div>

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

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [7 במאי,‏ 2015,‏ 1:33am UTC](https://meta.discourse.org/t/have-url-for-creating-topic-with-specific-title/28327/7 "2015-05-07T01:33:26Z")

</div>

Is this complete and can be closed, then?

---

<div class="post-metadata">

### Author: ![Rene](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rene/32/115724_2.png) [@Rene](https://meta.discourse.org/u/Rene)
#### Post date: [7 במאי,‏ 2015,‏ 5:13am UTC](https://meta.discourse.org/t/have-url-for-creating-topic-with-specific-title/28327/8 "2015-05-07T05:13:32Z")

</div>

from my side it is solved

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [7 במאי,‏ 2015,‏ 5:19am UTC](https://meta.discourse.org/t/have-url-for-creating-topic-with-specific-title/28327/9 "2015-05-07T05:19:19Z")

</div>


