Compose a new pre-filled topic via URL

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

45 Likes
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?
Unlisted categories
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
Add one button for topic create with pre-filled content without composer or API?
How to open reply window via URL
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
Chrome/Firefox extension "Share to discourse"
Have url for creating topic with specific title
Topic Templates
Any Direct URL To New Topic Page?
Pre-filled topics don't recognize subcategories anymore
Link to create a new topic with parsed values in GET-method data?
Is there a way to make an input form for structured data?
Is there any link to open composer (for hyperlink)?
Rename @discobot's start new user command
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
How to create a post clicking a link?
Discourse Tab Bar for Mobile
Using category slug when creating new topic via URL

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!

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

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

Apologies for bumping post.
Is there u chance to pass param to composer open in full screen mode ?
image

2 Likes

hmm I am not against adding an option here

6 Likes

Hello, was this question addressed? Thank you!

2 Likes

Nope… Unfortunately not
:frowning: