# Pasting category link into the composer reveals hidden sub-categories

**URL:** https://meta.discourse.org/t/pasting-category-link-into-the-composer-reveals-hidden-sub-categories/366541
**Category:** Bug
**Tags:** composer, onebox
**Created:** [May 17, 2025, 10:57am UTC](https://meta.discourse.org/t/pasting-category-link-into-the-composer-reveals-hidden-sub-categories/366541 "2025-05-17T10:57:50Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![ondrej](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ondrej/32/198804_2.png) [@ondrej](https://meta.discourse.org/u/ondrej)
#### Post date: [May 17, 2025, 10:57am UTC](https://meta.discourse.org/t/pasting-category-link-into-the-composer-reveals-hidden-sub-categories/366541/1 "2025-05-17T10:57:50Z")

</div>

👋

I’ve just stumbled across this in another community. In that case, only the Espanol and Francais category should be visible. If you press ‘Private’ you’ll get a ‘This page doesn’t exist or is private’.

 ![image](https://global.discourse-cdn.com/meta/original/4X/8/0/0/800d5aa7e9172af3bd48d09f51ceee21eca0b309.png)

I tried to repro this on Meta and after pasting the url of some categories into the composer, I found that #Support has a Bot testing category I cannot access but I can see it.

 ![image](https://global.discourse-cdn.com/meta/original/4X/2/2/7/227a399dc794195f6c5aab6b2b2799338d1f28b3.png)

---

<div class="post-metadata">

### Author: ![HamMan2118](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hamman2118/32/383565_2.png) [@HamMan2118](https://meta.discourse.org/u/HamMan2118)
#### Post date: [May 18, 2025, 6:19pm UTC](https://meta.discourse.org/t/pasting-category-link-into-the-composer-reveals-hidden-sub-categories/366541/2 "2025-05-18T18:19:22Z")

</div>

I tested it here and in another community and found that while subcategories show, any private top-level categories do not exhibit this issue.

For example, if I link both the Support category (a public category) and the Discourse Experts category (a private category), no embed in the Experts category appears (which may be by design, but I found it interesting). So, if I had access to a private top-level category but not all of the subcategories, I would be unable to see the subcategories when linking the top-level category in the composer.

 ![The image shows a technical issue where clicking category links leads to unexpected results, including an embed missing from the Discourse Experts community, highlighted by red lines in an online forum post. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/7/d/c/7dcf07e5008e59c2584c13eb5859be51e054b690.png)

---

<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: [July 16, 2025, 3:20pm UTC](https://meta.discourse.org/t/pasting-category-link-into-the-composer-reveals-hidden-sub-categories/366541/3 "2025-07-16T15:20:36Z")

</div>

Giving this one a bump as I can still repro here on meta with `https://meta.discourse.org/c/support/6`

> **[Support](https://meta.discourse.org/c/support/6)**
>
> Ask the community for help with anything related to Discourse. To help others help you, share as much detail as you can about the issue and what is occurring, including what you have tried so far from searching, reading the documentation or asking our AI bot.

Is this a small security issue?

For instance, if you had a parent support category for your customers (each with their own private subcategory that the other customers couldn’t see), they could get a sneaky peek at a list of who your other customers are by using this trick.

---

<div class="post-metadata">

### Author: ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)
#### Post date: [July 17, 2025, 2:52am UTC](https://meta.discourse.org/t/pasting-category-link-into-the-composer-reveals-hidden-sub-categories/366541/4 "2025-07-17T02:52:55Z")

</div>

Also perhaps a UX problem of the lack of spacing:  
 ![image](https://global.discourse-cdn.com/meta/original/4X/2/2/d/22d2224247d3add68eafd01e16daf156745653bc.png)

---

<div class="post-metadata">

### Author: ![ondrej](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ondrej/32/198804_2.png) [@ondrej](https://meta.discourse.org/u/ondrej)
#### Post date: [July 18, 2025, 11:13am UTC](https://meta.discourse.org/t/pasting-category-link-into-the-composer-reveals-hidden-sub-categories/366541/5 "2025-07-18T11:13:32Z")

</div>

> [@JammyDodger](#):
>
> Is this a small security issue?

Thats what I originally thought but since it hadn’t been actioned I assumed it wasn’t _really_ bad.

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [July 18, 2025, 12:58pm UTC](https://meta.discourse.org/t/pasting-category-link-into-the-composer-reveals-hidden-sub-categories/366541/6 "2025-07-18T12:58:11Z")

</div>

I can repro this. Thanks for the report Ondrej 🙂

---

<div class="post-metadata">

### Author: ![markvanlan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/markvanlan/32/160087_2.png) [@markvanlan](https://meta.discourse.org/u/markvanlan)
#### Post date: [July 18, 2025, 1:42pm UTC](https://meta.discourse.org/t/pasting-category-link-into-the-composer-reveals-hidden-sub-categories/366541/8 "2025-07-18T13:42:35Z")

</div>


