# Can we display category in page title?

**URL:** https://meta.discourse.org/t/can-we-display-category-in-page-title/21448
**Category:** Feature
**Created:** [23 Ottobre 2014, 11:28am UTC](https://meta.discourse.org/t/can-we-display-category-in-page-title/21448 "2014-10-23T11:28:58Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![danwad](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/danwad/32/33426_2.png) [@danwad](https://meta.discourse.org/u/danwad)
#### Post date: [23 Ottobre 2014, 11:28am UTC](https://meta.discourse.org/t/can-we-display-category-in-page-title/21448/1 "2014-10-23T11:28:58Z")

</div>

I find that the category is part of the context which is often required to fully understand what a topic title means.

Is it possible to add the category to the page title? I think it would be useful in search results (as in Google, not Discourse’s built-in search).

Cheers,  
Dan

---

<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: [23 Ottobre 2014, 3:27pm UTC](https://meta.discourse.org/t/can-we-display-category-in-page-title/21448/2 "2014-10-23T15:27:36Z")

</div>

Where do you think it should appear? Before or after the topic in the title tag?

---

<div class="post-metadata">

### Author: ![danwad](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/danwad/32/33426_2.png) [@danwad](https://meta.discourse.org/u/danwad)
#### Post date: [23 Ottobre 2014, 3:41pm UTC](https://meta.discourse.org/t/can-we-display-category-in-page-title/21448/3 "2014-10-23T15:41:54Z")

</div>

Don’t think it’s super important but I would say after, just for consistency - keeping the elements in order of specificity.

Topic title - Category name - Discourse title

---

<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: [23 Ottobre 2014, 3:48pm UTC](https://meta.discourse.org/t/can-we-display-category-in-page-title/21448/4 "2014-10-23T15:48:31Z")

</div>

Well right now if you view source you can see the `<title>` of this page, for example, has

`Can we display category in page title? - Discourse Meta`

So should that become

`Can we display category in page title? - Support - Discourse Meta`

or

`Support - Can we display category in page title? - Discourse Meta`

---

<div class="post-metadata">

### Author: ![danwad](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/danwad/32/33426_2.png) [@danwad](https://meta.discourse.org/u/danwad)
#### Post date: [23 Ottobre 2014, 4:04pm UTC](https://meta.discourse.org/t/can-we-display-category-in-page-title/21448/5 "2014-10-23T16:04:49Z")

</div>

As the category is the 2nd most/least specific term out of it, the forum name and the topic, I’d just slot it in the middle.

`Topic title - Category name - Discourse title`

`Can we display category in page title? - Support - Discourse Meta`

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [23 Ottobre 2014, 4:41pm UTC](https://meta.discourse.org/t/can-we-display-category-in-page-title/21448/6 "2014-10-23T16:41:22Z")

</div>

It definitely should not be first. I keep my tabs pretty small and the title of the topic is much more important than the category.

I’m happy to make this change, should take 5 mins or so, just say the word @codinghorror

---

<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: [23 Ottobre 2014, 4:55pm UTC](https://meta.discourse.org/t/can-we-display-category-in-page-title/21448/7 "2014-10-23T16:55:59Z")

</div>

Yeah probably fine, add category / subcategory to the end ala:

`Topic title - Category name / Subcategory name - Discourse title`

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [23 Ottobre 2014, 5:30pm UTC](https://meta.discourse.org/t/can-we-display-category-in-page-title/21448/8 "2014-10-23T17:30:48Z")

</div>

OK

[https://github.com/discourse/discourse/commit/2b2837fa12744cab330c2f1334d82854544774e5](https://github.com/discourse/discourse/commit/2b2837fa12744cab330c2f1334d82854544774e5)

---

<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: [23 Ottobre 2014, 5:32pm UTC](https://meta.discourse.org/t/can-we-display-category-in-page-title/21448/9 "2014-10-23T17:32:46Z")

</div>


