קישורי נושאים מקושרים אוטומטית לא "מתייפים"

סיכום מבוסס בינה מלאכותית

In a Discourse community, craigconstantine noticed that bare URLs to topics within the same site weren’t auto-converting into linked topic titles — a feature he expected to work automatically. After testing, he observed it sometimes worked, leading him to suspect category security settings might be involved craigconstantine. AccessViolation initially suggested punctuation (like a trailing period) might prevent oneboxing, but craigconstantine clarified this wasn’t about oneboxing — it was about auto-linking topic titles from internal URLs. Dannii confirmed that category security likely blocks this behavior to prevent data leaks, even for admins, since revealing topic titles in restricted categories could expose private content. craigconstantine countered that the title is already visible in the URL itself — meaning the leak already occurs if someone pastes such a link publicly. Dannii acknowledged this but noted the code likely treats all URL formats uniformly for consistency, especially since titles can change. Finally, codinghorror confirmed that only public categories support inline oneboxing, and private content (like PMs) won’t expand to avoid exposing information — reinforcing that security restrictions intentionally disable auto-prettifying for non-public categories.

In one of my hosted-Discourse communities, 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?

…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 . . .

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:

…will get a onebox, but
https://www.example.com/ .
…will not because of the . character.

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.

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.

…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.)

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.)

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.