# URL to filter by category and create a new topic

**URL:** https://meta.discourse.org/t/url-to-filter-by-category-and-create-a-new-topic/91221
**Category:** Feature
**Created:** [June 29, 2018, 6:06pm UTC](https://meta.discourse.org/t/url-to-filter-by-category-and-create-a-new-topic/91221 "2018-06-29T18:06:49Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![nikolais](https://avatars.discourse-cdn.com/v4/letter/n/b2d939/32.png) [@nikolais](https://meta.discourse.org/u/nikolais)
#### Post date: [June 29, 2018, 6:06pm UTC](https://meta.discourse.org/t/url-to-filter-by-category-and-create-a-new-topic/91221/1 "2018-06-29T18:06:49Z")

</div>

Hello!

There is a way to open Discourse and filter by category, by adding “/c/categoryName” to the URL.

There is also a way to have Discourse display the UI to create a new topic of a particular category, by adding “/new-topic?category=categoryName” to the URL.

I wonder, is there a way to combine the above two scenarios, i.e. to construct a URL that would display the topics filtered by a particular category and at the same time offer the user to create a topic of the same category?

Thank you in advance!  
Nikolai

---

<div class="post-metadata">

### Author: ![nikolais](https://avatars.discourse-cdn.com/v4/letter/n/b2d939/32.png) [@nikolais](https://meta.discourse.org/u/nikolais)
#### Post date: [July 15, 2018, 10:20am UTC](https://meta.discourse.org/t/url-to-filter-by-category-and-create-a-new-topic/91221/2 "2018-07-15T10:20:06Z")

</div>

Hello! Do you have any suggestions? Or is this really impossible?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [July 16, 2018, 12:09am UTC](https://meta.discourse.org/t/url-to-filter-by-category-and-create-a-new-topic/91221/3 "2018-07-16T00:09:09Z")

</div>

AFAIK there is no built in way, @techAPJ can confirm.

I support making a change so IF `?category=categoryName` you land on the category specific page vs latest and have category picked automatically.

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [July 16, 2018, 4:50am UTC](https://meta.discourse.org/t/url-to-filter-by-category-and-create-a-new-topic/91221/4 "2018-07-16T04:50:50Z")

</div>

I am not sure if I understand the question correctly.

> [@nikolais](#):
>
> to construct a URL that would display the topics filtered by a particular category and at the same time offer the user to create a topic of the same category?

I think this we already do this. For example: [https://meta.discourse.org/c/bug](https://meta.discourse.org/c/bug)

Now when you try to create a new topic by clicking on button + New Topic on “bug” categories page the category “bug” will be pre-selected in composer.

If you want users to have a link to create topics on “bug” category as soon as they land on your forum just hand them this URL: `https://meta.discourse.org/new-topic?category=bug`.

---

<div class="post-metadata">

### Author: ![nikolais](https://avatars.discourse-cdn.com/v4/letter/n/b2d939/32.png) [@nikolais](https://meta.discourse.org/u/nikolais)
#### Post date: [July 16, 2018, 7:04am UTC](https://meta.discourse.org/t/url-to-filter-by-category-and-create-a-new-topic/91221/5 "2018-07-16T07:04:54Z")

</div>

Hello Arpit, thank you for the answer! The two links you sent work as expected, but I would like to combine them.

- `https://meta.discourse.org/c/bug` shows the list of all the topics of the category “bug”
- `https://meta.discourse.org/new-topic?category=bug` creates a new topic of the category “bug”

But can I have a URL to create a new topic of the category “bug” and at the same time have the list behind already filtered by the category “bug”? With the second link the list includes all categories.

Thanks again!  
Nikolai

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [July 16, 2018, 7:10am UTC](https://meta.discourse.org/t/url-to-filter-by-category-and-create-a-new-topic/91221/6 "2018-07-16T07:10:38Z")

</div>

> [@nikolais](#):
>
> can I have a URL to create a new topic of the category “bug” and at the same time have the list behind already filtered by the category “bug”?

> [@sam](#):
>
> I support making a change so IF `?category=categoryName` you land on the category specific page vs latest and have category picked automatically.

Added on my list to make it so. :memo:

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [July 20, 2018, 12:54pm UTC](https://meta.discourse.org/t/url-to-filter-by-category-and-create-a-new-topic/91221/7 "2018-07-20T12:54:48Z")

</div>

Done via:

> <https://github.com/discourse/discourse/commit/7d9c97d66141d35d00258fe544211d9fd7f79a76>

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [July 24, 2018, 1:00am UTC](https://meta.discourse.org/t/url-to-filter-by-category-and-create-a-new-topic/91221/8 "2018-07-24T01:00:03Z")

</div>

This topic was automatically closed after 3 days. New replies are no longer allowed.
