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
How to open reply window via URL
URL parameters for title and post content
Using the Discourse API to post with uploaded files?
Add one button for topic create with pre-filled content without composer or API?
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?
Any Direct URL To New Topic Page?
Gitter: Post notifications to chat, post transcripts to forum
Chrome/Firefox extension "Share to discourse"
Open new topic composer in a separate window
Using category slug when creating new topic via URL
Discourse Tab Bar for Mobile
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

(Erik Molenaar) #23

Great feature!

Is it possible to include variables like a pre-filled username ?

e.g.: set the Topic Title to “Hi! I am %username%” which will output “Hi! I am Erik Molenaar!”

Thanks for listening!


(Arpit Jalan) #24

2 posts were split to a new topic: Using category slug when creating new topic via URL


(Arpit Jalan) #26

A post was split to a new topic: Cannot add tags when creating new pre-filled topic via URL