How do I create a link which opens Create Topic?

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

1 Like

You can do it. See this topic: Compose a new pre-filled topic via URL.

3 Likes

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
2 Likes

Thanks. The examples that are oneboxed at Compose a new pre-filled topic via URL 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.

3 Likes

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.

1 Like

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.

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