# Automatisch gelinkte onderwerp-URL's worden niet "mooier" gemaakt

**URL:** https://meta.discourse.org/t/auto-linked-topic-urls-dont-prettify/192799
**Category:** Support
**Created:** [5 juni 2021 om 22:09 UTC](https://meta.discourse.org/t/auto-linked-topic-urls-dont-prettify/192799 "2021-06-05T22:09:56Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![craigconstantine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/craigconstantine/32/511195_2.png) [@craigconstantine](https://meta.discourse.org/u/craigconstantine)
#### Post date: [5 juni 2021 om 22:09 UTC](https://meta.discourse.org/t/auto-linked-topic-urls-dont-prettify/192799/1 "2021-06-05T22:09:57Z")

</div>

![Screen Shot 2021-06-05 at 18.08.18](https://global.discourse-cdn.com/meta/original/3X/0/4/042b3ddd3f37bb0f562ae46d8b7f6ceded131087.png)

In one of my hosted-Discourse communities, [https://forum.podcaster.community/](https://forum.podcaster.community/), when I include a bare URL, it doesn’t turn into a linked title.. I would’ve sworn that was an it-just-works-feature. Am I nuts?

---

<div class="post-metadata">

### Author: ![craigconstantine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/craigconstantine/32/511195_2.png) [@craigconstantine](https://meta.discourse.org/u/craigconstantine)
#### Post date: [5 juni 2021 om 22:41 UTC](https://meta.discourse.org/t/auto-linked-topic-urls-dont-prettify/192799/2 "2021-06-05T22:41:32Z")

</div>

…waaaaaaaaaait a minute. I was working on something else, and it _did_ magically prettify it.

Does category security affect how that works? I’m an admin so I see everything, but maybe the title auto-prettify code is noticing a bare URL to a category with security . . .

---

<div class="post-metadata">

### Author: ![AccessViolation](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/accessviolation/32/223165_2.png) [@AccessViolation](https://meta.discourse.org/u/AccessViolation)
#### Post date: [6 juni 2021 om 12:13 UTC](https://meta.discourse.org/t/auto-linked-topic-urls-dont-prettify/192799/3 "2021-06-06T12:13:13Z")

</div>

In your image, I see that there is a `.` after your link. In order for URLs to turn into a onebox, they need to be alone on a line.

For example, just a URL on a line and nothing else:

> **[Wikipedia

The Free Encyclopedia](https://www.wikipedia.org/)**
>
> You deserve an explanation, so please don't skip this 1-minute read. Our fundraiser won't last long, and we need some help to reach our goal. Less than 2% of our readers donate, but if everyone who saw this message gave $2.75, we'd hit our goal in a few hours. The rare few who donate do so because Wikipedia provides them with useful knowledge. If that sounds like you, please donate $2.75. Any contribution you make today helps. We ask you, sincerely: don't skip this. Be one of the rare readers who...

…will get a onebox, but  
[https://www.example.com/](https://www.example.com/) .  
…will not because of the `.` character.

---

<div class="post-metadata">

### Author: ![craigconstantine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/craigconstantine/32/511195_2.png) [@craigconstantine](https://meta.discourse.org/u/craigconstantine)
#### Post date: [6 juni 2021 om 12:17 UTC](https://meta.discourse.org/t/auto-linked-topic-urls-dont-prettify/192799/4 "2021-06-06T12:17:17Z")

</div>

Thanks!

…but it’s not about oneboxing. There’s a feature where it will take a bare URL, for a topic in the same discourse site, and turn it into the topic-title linked.

---

<div class="post-metadata">

### Author: ![Dannii](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dannii/32/129087_2.png) [@Dannii](https://meta.discourse.org/u/Dannii)
#### Post date: [6 juni 2021 om 12:19 UTC](https://meta.discourse.org/t/auto-linked-topic-urls-dont-prettify/192799/5 "2021-06-06T12:19:15Z")

</div>

> [@craigconstantine](#):
>
> Does category security affect how that works? I’m an admin so I see everything, but maybe the title auto-prettify code is noticing a bare URL to a category with security . . .

I think it does. Revealing the titles of topics in restricted categories would be a data leak.

I’m not sure if it’s smart enough to allow links to other categories with equal restrictions to be prettified or not. But you can always manually post the link with its title.

---

<div class="post-metadata">

### Author: ![craigconstantine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/craigconstantine/32/511195_2.png) [@craigconstantine](https://meta.discourse.org/u/craigconstantine)
#### Post date: [6 juni 2021 om 12:22 UTC](https://meta.discourse.org/t/auto-linked-topic-urls-dont-prettify/192799/6 "2021-06-06T12:22:30Z")

</div>

> [@Dannii](#):
>
> Revealing the titles of topics in restricted categories would be a data leak.

…except, the title is _in_ the URL itself for links to the this-same-discourse-site. So it’s already effectively leaked.

(To be clear: _I’m_ leaking it by pasting a URL to a secured topic, in a public topic.)

---

<div class="post-metadata">

### Author: ![Dannii](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dannii/32/129087_2.png) [@Dannii](https://meta.discourse.org/u/Dannii)
#### Post date: [6 juni 2021 om 12:54 UTC](https://meta.discourse.org/t/auto-linked-topic-urls-dont-prettify/192799/7 "2021-06-06T12:54:55Z")

</div>

True… but it’s probably one function in the code which handles all the possible URL formats, which don’t have to include topic titles. (Or the title could have changed.)

---

<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: [6 juni 2021 om 21:25 UTC](https://meta.discourse.org/t/auto-linked-topic-urls-dont-prettify/192799/9 "2021-06-06T21:25:01Z")

</div>

> [@craigconstantine](#):
>
> Does category security affect how that works?

Yes, only public categories will work for inline oneboxing. For example, if I was to paste in an URL to a PM here, it would not expand, since that would reveal information about the PM to everyone.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [6 juli 2021 om 21:25 UTC](https://meta.discourse.org/t/auto-linked-topic-urls-dont-prettify/192799/10 "2021-07-06T21:25:53Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
