# How do I create a link which opens Create Topic?

**URL:** https://meta.discourse.org/t/how-do-i-create-a-link-which-opens-create-topic/73881
**Category:** Support
**Created:** [November 11, 2017, 6:01am UTC](https://meta.discourse.org/t/how-do-i-create-a-link-which-opens-create-topic/73881 "2017-11-11T06:01:21Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![Andy\_White1](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/andy_white1/32/81724_2.png) [@Andy\_White1](https://meta.discourse.org/u/Andy_White1)
#### Post date: [November 11, 2017, 6:01am UTC](https://meta.discourse.org/t/how-do-i-create-a-link-which-opens-create-topic/73881/1 "2017-11-11T06:01:21Z")

</div>

We would like to create a link from some text in the Category Description. which opens Create Topic dialogue page (Just as the Create new Topic text link does.)

[Here is the page on our site where the question is posed](https://community.goprojectpool.com/t/about-the-cost-plus-onsite-category/166?u=andy)

Many thanks for your help on this. I have searched and I get the feeling it is a wish list, but maybe wrong

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [November 11, 2017, 6:20am UTC](https://meta.discourse.org/t/how-do-i-create-a-link-which-opens-create-topic/73881/2 "2017-11-11T06:20:34Z")

</div>

You can do it. See this topic: [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).

---

<div class="post-metadata">

### Author: ![Andy\_White1](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/andy_white1/32/81724_2.png) [@Andy\_White1](https://meta.discourse.org/u/Andy_White1)
#### Post date: [November 11, 2017, 7:01am UTC](https://meta.discourse.org/t/how-do-i-create-a-link-which-opens-create-topic/73881/3 "2017-11-11T07:01:38Z")

</div>

> [@simon](#):
>
> You can do it. See this topic: Compose a new pre-filled topic via URL

Gave it my best `non coder` attempt. [My effort and log here.](https://community.goprojectpool.com/t/about-the-consultancy-category/167?u=andy) Can you give me some advice on what I should have put in?

---

<div class="post-metadata">

### Author: ![scombs](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/scombs/32/48616_2.png) [@scombs](https://meta.discourse.org/u/scombs)
#### Post date: [November 11, 2017, 11:05am UTC](https://meta.discourse.org/t/how-do-i-create-a-link-which-opens-create-topic/73881/4 "2017-11-11T11:05:23Z")

</div>

The link looks ok

```
https://meta.discourse.org/new-topic?title=topic%20title&amp;body=topic%20body&amp;category=support/wordpress&amp;tags=wordpress.   

```

vs

```
https://community.goprojectpool.com/new-topic?title=topic%20title&amp;body=topic%20body&amp;category=client/consultancy&amp;tags=email,planned

```

What happens when you try to create the topic? It may show Latest screen, but the topic will be added to the applicable category

---

<div class="post-metadata">

### Author: ![Andy\_White1](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/andy_white1/32/81724_2.png) [@Andy\_White1](https://meta.discourse.org/u/Andy_White1)
#### Post date: [November 11, 2017, 1:11pm UTC](https://meta.discourse.org/t/how-do-i-create-a-link-which-opens-create-topic/73881/5 "2017-11-11T13:11:33Z")

</div>

> [@scombs](#):
>
> What happens when you try to create the topic? It may show Latest screen, but the topic will be added to the applicable category

Thanks Steve

I get this

 ![57](https://global.discourse-cdn.com/meta/original/3X/f/4/f4e5f0de9683a48a4797cd80f5271ddb5b5ae2a5.png)

When I should be getting this (I Thought)

 ![57](https://global.discourse-cdn.com/meta/original/3X/5/e/5e89960f9eb2b199550db8a8716b614ec6208363.png)

---

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [November 11, 2017, 2:16pm UTC](https://meta.discourse.org/t/how-do-i-create-a-link-which-opens-create-topic/73881/6 "2017-11-11T14:16:51Z")

</div>

Replace `&amp;` with `&` like below then it will work.

```plaintext
https://community.goprojectpool.com/new-topic?title=topic%20title&body=topic%20body&category=client/consultancy&tags=email,planned

```

---

<div class="post-metadata">

### Author: ![scombs](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/scombs/32/48616_2.png) [@scombs](https://meta.discourse.org/u/scombs)
#### Post date: [November 11, 2017, 2:29pm UTC](https://meta.discourse.org/t/how-do-i-create-a-link-which-opens-create-topic/73881/7 "2017-11-11T14:29:36Z")

</div>

Thanks. The examples that are oneboxed at [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) have the `&amp;`. Updating those may help others.

---

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [November 11, 2017, 2:48pm UTC](https://meta.discourse.org/t/how-do-i-create-a-link-which-opens-create-topic/73881/8 "2017-11-11T14:48:15Z")

</div>

It looks like some other issue is causing it. I created a [bug topic](https://meta.discourse.org/t/in-urls-are-replaced-with-amp-inside-onebox/73895) for that. Thanks for your concern @scombs.

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [November 11, 2017, 4:32pm UTC](https://meta.discourse.org/t/how-do-i-create-a-link-which-opens-create-topic/73881/9 "2017-11-11T16:32:35Z")

</div>

> [@Andy\_White1](#):
>
> Gave it my best non coder attempt. My effort and log here. Can you give me some advice on what I should have put in?

You seem to be on the right track. When I substitute my site’s domain into the template you have in that topic, it opens the composer in the correct category.

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [November 11, 2017, 8:42pm UTC](https://meta.discourse.org/t/how-do-i-create-a-link-which-opens-create-topic/73881/10 "2017-11-11T20:42:26Z")

</div>

The problem is that Discourse want to automatically onebox the message link. You can stop a onebox from being created by either putting a space in front of the link, or by creating the link by clicking on composer’s link (🔗) modal.

---

<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: [November 11, 2017, 9:29pm UTC](https://meta.discourse.org/t/how-do-i-create-a-link-which-opens-create-topic/73881/11 "2017-11-11T21:29:28Z")

</div>

You can also stop a one of by putting any text after the link. The link must be on a line by itself with nothing else in front or behind it, to one box.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [June 8, 2024, 12:44pm UTC](https://meta.discourse.org/t/how-do-i-create-a-link-which-opens-create-topic/73881/12 "2024-06-08T12:44:04Z")

</div>

This topic was automatically closed after 2401 days. New replies are no longer allowed.
