How to create a new topic link with pre-filled information

Discourse now supports composing a new (pre-filled) topic via URL! To compose a new pre-filled topic, modify URL params like this:

https://discourse.example.com/new-topic?title=topic%20title&body=topic%20body&category=category/subcategory&tags=email,planned

This will open composer window pre filled with topic title, body, category and tags.

Breaking down the link / URL to show the available options, we have:

  • the base URL / link: https://discourse.example.com/new-topic
  • the ? URL operator to add the different options
  • the topic title: title=topic%20title
  • the & URL operator to include multiple options
  • the body of the topic: body=topic%20body
  • the & URL operator again to include multiple options
  • the category and subcategory separated by a backslash / if you want to include them: category=category/subcategory
  • the & URL operator again to include multiple options
  • and the tags separated by comma(s) , if you want to include multiple tags: tags=email,planned

Try it out live, here on meta! :smile:

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

Also, instead of providing category/subcategory name, you can also specify a numeric category_id, like:

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

This feature also supports “Start a topic by pasting a link (like Reddit)”, provided that the body is not present, for example:

https://meta.discourse.org/new-topic?title=https://www.xkcd.com/556

If you have a lot of text to add, you can use w3Schools’s HTML URL Encoding Reference to find what text characters are encoded as in the URL, there is even a text to URL converter in the Try It Yourself section in the page linked above in this paragraph.


Want to create / compose a new pre-filled personal message instead? See: How to create a new personal message via a link with pre-filled information

65 Likes
Start creating a new topic via link?
Fill in post for user?
Link that pre-populates the composer?
What is the best way to integrate member applications?
How to open reply window via URL
Unlisted categories
How Coinbase Uses Discourse to Educate Customers and Improve SEO
Open Composer with Prefilled information
Bookmarklet or chrome extension for posting links to a Discourse
How to open reply window via URL
Link to create a new topic with parsed values in GET-method data?
Add one button for topic create with pre-filled content without composer or API?
Feature request: Topic-specific reply template
Rename @discobot's start new user command
Link to New Topic?
Create new topic via URL and set tag or category
Wording for private/secure categories
Feature request: Topic-specific reply template
Feature request: Topic-specific reply template
Feature request: Topic-specific reply template
How to add a "button" which composes a pre-filled topic
Versatile Banner
How to create a post clicking a link?
Discourse Tab Bar for Mobile
Pre-filled topics don't recognize subcategories anymore
Is there any link to open composer (for hyperlink)?
Problem in sso redirection for compose a new pre-filled topic via URL
"push" sso users to discourse?
[PAID] extra input fields for new topic
How to "replace" +New Topic with a custom button that brings up the composer
Post commits via webhook inside a topic as reply
Was this Article helpful? Yes or No
Start a topic by pasting a link (like Reddit)
How to create a new personal message via a link with pre-filled information
Deep link to new topic or account creation
Category-specific "new topic" email address/url in notification email?
[Solved] In plugin: opening the composer without changing the route
Any Direct URL To New Topic Page?
Have url for creating topic with specific title
Topic Templates
DiscourseConnect - Official Single-Sign-On for Discourse (sso)
Is there a way to make an input form for structured data?
Create new topic in category with specific tag via URL
New Topic Create URL is not working for Subcategory
URL to start new post
How do I create a link which opens Create Topic?
How do I create a link which opens Create Topic?
Open new topic composer in a separate window
Gitter: Post notifications to chat, post transcripts to forum
Chrome/Firefox extension "Share to discourse"
How to add%{post_url} in customize URL
How to auto set topic title?
How can I create a new topic in Discourse via a link or direct the person to the topic if it exists