Compose a new pre-filled topic via URL


(Arpit Jalan) #1

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

http://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.

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

Want to compose a pre-filled personal message instead? See: Compose a new pre-filled personal message via URL


How to open composer with prefilled content?
Start creating a new topic via link?
Link that pre-populates the composer?
Fill in post for user?
What is the best way to integrate member applications?
Pre-filled REPLY to an existing topic via URL
Unlisted categories
Add one button for topic create with pre-filled content without composer or API?
Using the Discourse API to post with uploaded files?
URL parameters for title and post content
How to open reply window via URL
How Coinbase Uses Discourse to Educate Customers and Improve SEO
Bookmarklet or chrome extension for posting links to a Discourse
How to open reply window via URL
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
Discourse Tab Bar for Mobile
Chrome/Firefox extension "Share to discourse"
How to create a post clicking a link?
How to auto set topic title?
Open Composer with Prefilled information
Link to New Topic?
Feature request: Topic-specific reply template
Feature request: Topic-specific reply template
Feature request: Topic-specific reply template
Feature request: Topic-specific reply template
Wording for private/secure categories
Create new topic via URL and set tag or category
Start a topic by pasting a link (like Reddit)
[Solved] In plugin: opening the composer without changing the route
Have url for creating topic with specific title
Topic Templates
A community effort to improve Discourse's documentation
Is there a way to make an input form for structured data?
How do I create a link which opens Create Topic?
(Jeff Atwood) #22