# Parent Category name is not shown in sub category page title

**URL:** https://meta.discourse.org/t/parent-category-name-is-not-shown-in-sub-category-page-title/100284
**Category:** Feature
**Created:** [23 oktober 2018 om 16:49 UTC](https://meta.discourse.org/t/parent-category-name-is-not-shown-in-sub-category-page-title/100284 "2018-10-23T16:49:05Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Anil\_Gupta](https://avatars.discourse-cdn.com/v4/letter/a/58956e/32.png) [@Anil\_Gupta](https://meta.discourse.org/u/Anil_Gupta)
#### Post date: [23 oktober 2018 om 16:49 UTC](https://meta.discourse.org/t/parent-category-name-is-not-shown-in-sub-category-page-title/100284/1 "2018-10-23T16:49:05Z")

</div>

I am not sure if this is a bug or I am missing any admin setting.

I tried Admin setting:

 ![image](https://global.discourse-cdn.com/meta/original/3X/b/7/b72861259495237056d8a54ee045e95367f4d260.png)

It does show the category name when I am on **category** page.

But, If i am on **subcategory** page, it only shows subcategory name in page title.

Shouldn’t Page title be like?  
**Parent Category → SubCategory → so on?**

Problem Example:  
[This page](https://www.truvisa.com/c/usa/news) is missing the parent category name ‘ **USA** ’ in page title

 ![image](https://global.discourse-cdn.com/meta/original/3X/e/0/e0f51584da031d00adf901baf104b5c80b628c1a.png)

This results in same page title for multiple subcategories (with same name) inside **different** parent categories and SEO is affected.

Example: if i have ‘News’ subcategory under parent categories like **USA-\>News** and **Australia-\>News**.  
Both subcategory pages will have the same Page title even though they belong to two different parent categories.

Please help with a setting, if any, that i may have missed.

---

<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 oktober 2018 om 22:46 UTC](https://meta.discourse.org/t/parent-category-name-is-not-shown-in-sub-category-page-title/100284/2 "2018-10-23T22:46:38Z")

</div>

Oh you mean the literal subcategory page `<title>`.

Sure I can see that, but I expect it will be a bit of a micro-optimization… on the other hand, it is pretty trivial to “fix”, so why not? Can you take that @gerhard?

---

<div class="post-metadata">

### Author: ![Anil\_Gupta](https://avatars.discourse-cdn.com/v4/letter/a/58956e/32.png) [@Anil\_Gupta](https://meta.discourse.org/u/Anil_Gupta)
#### Post date: [24 oktober 2018 om 00:04 UTC](https://meta.discourse.org/t/parent-category-name-is-not-shown-in-sub-category-page-title/100284/4 "2018-10-24T00:04:09Z")

</div>

Thanks @codinghorror for replying.

Yes, I mean the attribute on the page should include the Parent categories as well.

Looking forward for the fix.

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [20 mei 2019 om 15:33 UTC](https://meta.discourse.org/t/parent-category-name-is-not-shown-in-sub-category-page-title/100284/8 "2019-05-20T15:33:57Z")

</div>

That should fix it:

[https://github.com/discourse/discourse/pull/7576](https://github.com/discourse/discourse/pull/7576)

With the following hierarchy: PARENT CAT → SUB CAT

The title anchor will now print: “Latest PARENT CAT/SUB CAT topics - SITE TITLE” when browsing subcat page.

---

<div class="post-metadata">

### Author: ![Anil\_Gupta](https://avatars.discourse-cdn.com/v4/letter/a/58956e/32.png) [@Anil\_Gupta](https://meta.discourse.org/u/Anil_Gupta)
#### Post date: [20 mei 2019 om 15:52 UTC](https://meta.discourse.org/t/parent-category-name-is-not-shown-in-sub-category-page-title/100284/9 "2019-05-20T15:52:07Z")

</div>

Thanks. i appreciate it. I guess the fix will be part of next release?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [20 mei 2019 om 15:56 UTC](https://meta.discourse.org/t/parent-category-name-is-not-shown-in-sub-category-page-title/100284/10 "2019-05-20T15:56:53Z")

</div>

If you are self hosted and on Tests-passed (the default) you can upgrade now, either from the command line or at /admin/upgrade.

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [20 mei 2019 om 16:50 UTC](https://meta.discourse.org/t/parent-category-name-is-not-shown-in-sub-category-page-title/100284/11 "2019-05-20T16:50:11Z")

</div>

AFAIK that PR hasn’t been merged yet.

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [21 mei 2019 om 07:04 UTC](https://meta.discourse.org/t/parent-category-name-is-not-shown-in-sub-category-page-title/100284/12 "2019-05-21T07:04:23Z")

</div>

This is now merged 🎉

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [21 mei 2019 om 16:00 UTC](https://meta.discourse.org/t/parent-category-name-is-not-shown-in-sub-category-page-title/100284/13 "2019-05-21T16:00:00Z")

</div>

This topic was automatically closed after 24 hours. New replies are no longer allowed.
