# Bug Report: "Auto Tag Topic" in Discourse Automation — Link Detection Not Working, Onebox Triggers Image

**URL:** <https://meta.discourse.org/t/bug-report-auto-tag-topic-in-discourse-automation-link-detection-not-working-onebox-triggers-image/366784>\
**Category:** Product Support\
**Tags:** automation\
**Created:** [May 20, 2025, 1:14am UTC](https://meta.discourse.org/t/bug-report-auto-tag-topic-in-discourse-automation-link-detection-not-working-onebox-triggers-image/366784 "2025-05-20T01:14:42Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![copymonopoly](https://avatars.discourse-cdn.com/v4/letter/c/4491bb/32.png) [@copymonopoly](https://meta.discourse.org/u/copymonopoly)\
**Post date:** [May 20, 2025, 1:14am UTC](https://meta.discourse.org/t/bug-report-auto-tag-topic-in-discourse-automation-link-detection-not-working-onebox-triggers-image/366784/1 "2025-05-20T01:14:42Z")

</div>

I’ve been testing the **“Auto Tag Topic”** feature in the [Discourse Automation plugin](https://meta.discourse.org/t/discourse-automation), and I’ve encountered some unexpected behavior with the `link` and `image` conditions.

### ✅ What works and what doesn’t

#### `Image` condition:

- Uploading an image (via drag-and-drop or file upload) **correctly triggers** the automation.
- If a topic includes a Onebox (e.g. from Twitter, YouTube, or GitHub), it can also **trigger the `image` condition** , likely due to the embedded preview image.
- ✅ Fortunately, **regular image links** (e.g. Markdown or bare `.jpg` URLs) are _not_ falsely recognized as uploads — this is a helpful distinction and avoids incorrect tagging.

#### `Link` condition:

- The `link` condition **does not trigger at all** , regardless of how the link is added:
  - `[Example](https://example.com)` (Markdown)
  - `https://example.com` (bare URL)
  - Links that generate Oneboxes
  - Links that do _not_ generate Oneboxes

This makes the `link` option currently unreliable or possibly broken.

* * *

### 📌 Summary

| Condition | Works? | Notes |
| --- | --- | --- |
| `Upload` | ✅ Yes | Triggers reliably |
| `Image` | ⚠ Partially | Uploads work; Oneboxes also trigger this |
| `Code` | ✅ Yes | Works as expected |
| `Link` | ❌ No | Does not trigger under any tested scenario |

* * *

If the current `link` behavior is unintentional, I hope it can be addressed in a future update.  
Thanks for all the work on this plugin — it’s a powerful tool that could be even better with a few refinements.

---

_[View the full topic](https://meta.discourse.org/t/bug-report-auto-tag-topic-in-discourse-automation-link-detection-not-working-onebox-triggers-image/366784)._
