How do I create a link which opens Create Topic?

AI-generated summary

Users are seeking to create a link from category descriptions that opens the ‘Create Topic’ dialogue. Andy_White1 initiates the thread, referencing a related page, and later shares their attempt. simon directs them to a [meta topic](https://meta.discours e.org/t/compose-a-new-pre-filled-topic-via-url/28074) explaining how to pre-fill topic URLs. scombs reviews Andy’s link format and suggests checking if the topic is created despite UI confusion. vinothkannans identifies that & should be replaced with & in URLs for proper functionality. scombs notes the meta topic’s examples use &, suggesting an update. vinothkannans files a [bug report](https://meta.discourse.org /t/in-urls-are-replaced-with-amp-inside-onebox/73895) about oneboxing behavior. simon confirms Andy’s approach is correct and simon explains that Discourse oneboxes links automatically unless a space precedes the link or it’s inserted via the link modal. codinghorror adds that adding any text after the link also prevents oneboxing, since oneboxing requires the link to be on a line alone.

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

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

You can do it. See this topic: Creating a link to start a new topic with pre-filled information.

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?

The link looks ok

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

vs

https://community.goprojectpool.com/new-topic?title=topic%20title&body=topic%20body&category=client/consultancy&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

Thanks Steve

I get this

When I should be getting this (I Thought)

Replace & with & like below then it will work.

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

Thanks. The examples that are oneboxed at Creating a link to start a new topic with pre-filled information have the &. Updating those may help others.

It looks like some other issue is causing it. I created a bug topic for that. Thanks for your concern @scombs.

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.

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 (:link:) modal.

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.