# Doubt about category and sub-category

**URL:** <https://meta.discourse.org/t/doubt-about-category-and-sub-category/89243>\
**Category:** Product Support\
**Created:** [June 6, 2018, 1:37pm UTC](https://meta.discourse.org/t/doubt-about-category-and-sub-category/89243 "2018-06-06T13:37:09Z")\
**Posts on this page:** 4\
**Page:** 1

## AI-generated summary

In a discussion titled "Doubt about category and sub-category," user [SidV](/t/-/89243/1) asks about the implications of promoting a sub-category to an independent main category within their Discourse community. SidV is concerned whether existing discussions referencing the old sub-category slug (e.g., `#category-main:secondary`) will automatically update to the new slug (`#secondary`) or if a redirection mechanism will handle the transition. [pfaffman](/t/-/89243/2) clarifies that if a category is renamed or restructured, Discourse automatically creates a permalink to redirect the old URL to the new one, ensuring continuity for existing links. Satisfied with this confirmation, SidV replies with appreciation, noting that "Discourse rulez" [SidV](/t/-/89243/3).

<div class="post-metadata">

**Author:** ![SidV](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sidv/32/119460_2.png) [@SidV](https://meta.discourse.org/u/SidV)\
**Post date:** [June 6, 2018, 1:37pm UTC](https://meta.discourse.org/t/doubt-about-category-and-sub-category/89243/1 "2018-06-06T13:37:09Z")

</div>

Hello

I have a question related to the edition of categories.

In my community, we start with a category, and a sub-category.

We have:  
`forum.com/c/category-main` → slug: `#category-main`  
`forum.com/c/category-main/secondary` → slug: `#category-main:secondary`

Everything works spectacular.

That is, there are debates where the main category is mentioned: `#category-main`  
And there are debates where the sub-category is mentioned like this: `#category-main:secondary`

**Now, the subcategory has grown and wants to be independent.**  
I know I could edit it, and put it as main.

My doubt about it is about the messages that mention the subcategory that would now be independent. Are they automatically changed or is some type of redirection activated?

I refer to the discussions where it is mentioned: `#category-main:secondary` should now become `#secondary` and redirect to `forum.com/c/secondary` ❓

Will it be like that?

---

<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:** [June 6, 2018, 1:43pm UTC](https://meta.discourse.org/t/doubt-about-category-and-sub-category/89243/2 "2018-06-06T13:43:40Z")

</div>

If you rename a category a permalink is created to redirect the old url to the new one.

---

<div class="post-metadata">

**Author:** ![SidV](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sidv/32/119460_2.png) [@SidV](https://meta.discourse.org/u/SidV)\
**Post date:** [June 6, 2018, 2:20pm UTC](https://meta.discourse.org/t/doubt-about-category-and-sub-category/89243/3 "2018-06-06T14:20:14Z")

</div>

Discourse rulez :allthethings:

Thanks @pfaffman !

---

<div class="post-metadata">

**Author:** ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)\
**Post date:** [June 8, 2024, 12:37pm UTC](https://meta.discourse.org/t/doubt-about-category-and-sub-category/89243/4 "2024-06-08T12:37:24Z")

</div>

Closed on June 8, 2024, 12:37pm UTC

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