# כיצד אוכל ליצור נושא חדש ב-Discourse באמצעות קישור או להפנות את האדם לנושא אם הוא קיים

**URL:** https://meta.discourse.org/t/how-can-i-create-a-new-topic-in-discourse-via-a-link-or-direct-the-person-to-the-topic-if-it-exists/192152
**Category:** Support
**Created:** [31 במאי,‏ 2021,‏ 8:13am UTC](https://meta.discourse.org/t/how-can-i-create-a-new-topic-in-discourse-via-a-link-or-direct-the-person-to-the-topic-if-it-exists/192152 "2021-05-31T08:13:35Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![jcayzac](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jcayzac/32/73266_2.png) [@jcayzac](https://meta.discourse.org/u/jcayzac)
#### Post date: [31 במאי,‏ 2021,‏ 8:13am UTC](https://meta.discourse.org/t/how-can-i-create-a-new-topic-in-discourse-via-a-link-or-direct-the-person-to-the-topic-if-it-exists/192152/1 "2021-05-31T08:13:36Z")

</div>

We have a newsletter made of links to curated external resources. I’d like to add a _Discuss_ link next to each item, which would point to a corresponding topic in our Discourse instance so that the newsletter audience can click to comment and engage others.

I tried using the trick mentioned at [Compose a new pre-filled topic via URL](https://meta.discourse.org/t/compose-a-new-pre-filled-topic-via-url/28074), i.e. using a link with `/new-topic?title=<url>`, but this creates a new topic every time and this is not what I want.

I want the link to show the _New Topic_ controller if the topic doesn’t exist yet, else take the visitor to the existing topic. Is there any way to achieve this with Discourse?

Thank you.

---

<div class="post-metadata">

### Author: ![osioke](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/osioke/32/238946_2.png) [@osioke](https://meta.discourse.org/u/osioke)
#### Post date: [31 במאי,‏ 2021,‏ 10:26am UTC](https://meta.discourse.org/t/how-can-i-create-a-new-topic-in-discourse-via-a-link-or-direct-the-person-to-the-topic-if-it-exists/192152/2 "2021-05-31T10:26:02Z")

</div>

Sorry, I updated your topic title to be a bit more descriptive so other users can better find it via search as they look for support.

> [@jcayzac](#):
>
> I want the link to show the _New Topic_ controller if the topic doesn’t exist yet, else take the visitor to the existing topic.

This will require some logic, and so you will definitely need to build something custom. Not sure if it is a theme component or plugin though, further research will be helpful to see which approach will be better.

---

<div class="post-metadata">

### Author: ![jcayzac](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jcayzac/32/73266_2.png) [@jcayzac](https://meta.discourse.org/u/jcayzac)
#### Post date: [31 במאי,‏ 2021,‏ 10:54pm UTC](https://meta.discourse.org/t/how-can-i-create-a-new-topic-in-discourse-via-a-link-or-direct-the-person-to-the-topic-if-it-exists/192152/3 "2021-05-31T22:54:04Z")

</div>

> [@osioke](#):
>
> This will require some logic, and so you will definitely need to build something custom. Not sure if it is a theme component or plugin though.

I’m not familiar with the Discourse code base yet, but if I were to send a PR, would it be OK to add a new param to the existing `/new-topic` route, or would you prefer the feature to be isolated in a plugin?

---

<div class="post-metadata">

### Author: ![Johani](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johani/32/176920_2.png) [@Johani](https://meta.discourse.org/u/Johani)
#### Post date: [31 במאי,‏ 2021,‏ 11:26pm UTC](https://meta.discourse.org/t/how-can-i-create-a-new-topic-in-discourse-via-a-link-or-direct-the-person-to-the-topic-if-it-exists/192152/4 "2021-05-31T23:26:12Z")

</div>

Sorry, no.

`/new-topic` means a new topic.

If the new topic route results in a _reply_ based on params, it would be confusing.

If that doesn’t work for your needs, you can modify the route in a plugin according to your needs.
