# Allow Title-Only Onebox

**URL:** https://meta.discourse.org/t/allow-title-only-onebox/354306
**Category:** Plugin
**Tags:** onebox, deprecated
**Created:** [February 25, 2025, 4:02am UTC](https://meta.discourse.org/t/allow-title-only-onebox/354306 "2025-02-25T04:02:51Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![dsims](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dsims/32/485916_2.png) [@dsims](https://meta.discourse.org/u/dsims)
#### Post date: [February 25, 2025, 4:02am UTC](https://meta.discourse.org/t/allow-title-only-onebox/354306/1 "2025-02-25T04:02:51Z")

</div>

| | | |
| --- | --- | --- |
| ℹ | **Summary** | Enables title-only oneboxes |
| 🛠 | **Repository Link** | [https://github.com/dsims/discourse-onebox-title-only](https://github.com/dsims/discourse-onebox-title-only) |
| 📖 | **Install Guide** | [How to install plugins in Discourse](https://meta.discourse.org/t/install-plugins-in-discourse/19157) |

### Feature

If a linked webpage is missing description or image metadata, Discourse will normally leave it as a URL and _not_ onebox it. This plugin changes that behavior to allow for title-only oneboxes.

#### Example:

> **[Discontinuation of Earning My Nintendo Gold Points | Nintendo Support](https://en-americas-support.nintendo.com/app/answers/detail/a_id/67660)**

becomes  
[![Screenshot 2025-02-24 at 10.02.36 PM](https://global.discourse-cdn.com/meta/original/4X/d/3/3/d3397d172a52d22f286148bb3055521dac609d9f.png)](https://en-americas-support.nintendo.com/app/answers/detail/a_id/67660)

---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [February 25, 2025, 6:02pm UTC](https://meta.discourse.org/t/allow-title-only-onebox/354306/3 "2025-02-25T18:02:32Z")

</div>

Cool, thanks for writing and publishing the plugin.

Maybe we should adopt this in core? Seems like a better default to me.

---

<div class="post-metadata">

### Author: ![dsims](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dsims/32/485916_2.png) [@dsims](https://meta.discourse.org/u/dsims)
#### Post date: [February 25, 2025, 6:16pm UTC](https://meta.discourse.org/t/allow-title-only-onebox/354306/4 "2025-02-25T18:16:48Z")

</div>

> [@pmusaraj](#):
>
> Maybe we should adopt this in core?

The `description` requirement was actually removed at one point (way back when it was a standalone gem) but then it was reverted a few months later, so I assume there was some reasoning not to do it.

I have only seen a handful of URLs in the wild that match this scenario, so I imagine there are some edge cases where it doesn’t look right.

---

<div class="post-metadata">

### Author: ![martin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/martin/32/491371_2.png) [@martin](https://meta.discourse.org/u/martin)
#### Post date: [February 25, 2025, 11:57pm UTC](https://meta.discourse.org/t/allow-title-only-onebox/354306/10 "2025-02-25T23:57:25Z")

</div>

@dsims it’s not clear at all why this behaviour of allowing oneboxes with no descriptions was backtracked here [FIX: do not show title only oneboxes by arpitjalan · Pull Request #448 · discourse/onebox · GitHub](https://github.com/discourse/onebox/pull/448) , so we will just add this behaviour back into core, no need for a plugin. Will try for a quick PR today for this.

---

<div class="post-metadata">

### Author: ![martin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/martin/32/491371_2.png) [@martin](https://meta.discourse.org/u/martin)
#### Post date: [February 26, 2025, 1:20am UTC](https://meta.discourse.org/t/allow-title-only-onebox/354306/11 "2025-02-26T01:20:11Z")

</div>

PR is here:

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

---

<div class="post-metadata">

### Author: ![dsims](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dsims/32/485916_2.png) [@dsims](https://meta.discourse.org/u/dsims)
#### Post date: [February 26, 2025, 2:16am UTC](https://meta.discourse.org/t/allow-title-only-onebox/354306/12 "2025-02-26T02:16:34Z")

</div>

One thing I did not address is that the composer preview still has a message implying that there is an issue generating the onebox.

 ![Screenshot 2025-02-25 at 9.11.56 PM](https://global.discourse-cdn.com/meta/original/4X/d/1/d/d1dfb13d1ad183f02b678e9cb36920fbc23ef4c2.png)

---

<div class="post-metadata">

### Author: ![martin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/martin/32/491371_2.png) [@martin](https://meta.discourse.org/u/martin)
#### Post date: [February 26, 2025, 2:20am UTC](https://meta.discourse.org/t/allow-title-only-onebox/354306/13 "2025-02-26T02:20:14Z")

</div>

Ah thanks for letting me know, I didn’t see this because I posted too fast when testing. Fixing in the same PR…

---

<div class="post-metadata">

### Author: ![dsims](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dsims/32/485916_2.png) [@dsims](https://meta.discourse.org/u/dsims)
#### Post date: [February 26, 2025, 4:53am UTC](https://meta.discourse.org/t/allow-title-only-onebox/354306/14 "2025-02-26T04:53:46Z")

</div>

Thanks! World’s fastest #deprecated plugin? 😂

---

<div class="post-metadata">

### Author: ![lindsey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lindsey/32/318210_2.png) [@lindsey](https://meta.discourse.org/u/lindsey)
#### Post date: [February 26, 2025, 12:56pm UTC](https://meta.discourse.org/t/allow-title-only-onebox/354306/15 "2025-02-26T12:56:44Z")

</div>

![](https://media.tenor.com/Pfz2r2r678wAAAAC/the-simpsons-bart-simpson.gif)

---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [February 26, 2025, 1:33pm UTC](https://meta.discourse.org/t/allow-title-only-onebox/354306/16 "2025-02-26T13:33:44Z")

</div>

Awesome, thanks for the plugin @dsims, its short-lived life served a purpose, it led to a fix in core (with benefits for all).

And thanks for the quick adoption in core @martin!
