Create a link to start a new topic 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: Create a link to start a new personal message with pre-filled information

71 Likes
Start creating a new topic via link?
Fill in post for user?
How to open reply window via URL
Link that pre-populates the composer?
What is the best way to integrate member applications?
Unlisted categories
Open Composer with Prefilled information
[PAID] extra input fields for new topic
Rename @discobot's start new user command
Link to create a new topic with parsed values in GET-method data?
Link to New Topic?
How Coinbase Uses Discourse to Educate Customers and Improve SEO
Bookmarklet or chrome extension for posting links to a Discourse
Pre-filled topics don't recognize subcategories anymore
Feature request: Topic-specific reply template
Add one button for topic create with pre-filled content without composer or API?
How to open reply window via URL
Feature request: Topic-specific reply template
Feature request: Topic-specific reply template
How to add a "button" which composes a pre-filled topic
How to create a post clicking a link?
Discourse Tab Bar for Mobile
Kanban Board
Start a topic by pasting a link (like Reddit)
Problem in sso redirection for compose a new pre-filled topic via URL
"push" sso users to discourse?
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
Category-specific "new topic" email address/url in notification email?
Deep link to new topic or account creation
Alerts that react to the user
Feedback form / reporting bugs
How to have a reply link with pre-filled information?
Topic templates for categories and other alternatives
URL to set up new topic and category, tags
Create a link to start a new personal message with pre-filled information
Is there any link to open composer (for hyperlink)?
[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
Setup 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
Create new topic via URL and set tag or category
Wording for private/secure categories
Feature request: Topic-specific reply template