# External link to undefined in suggested topics

**URL:** https://meta.discourse.org/t/external-link-to-undefined-in-suggested-topics/78882
**Category:** Bug
**Tags:** suggested-topics
**Created:** [January 24, 2018, 2:59pm UTC](https://meta.discourse.org/t/external-link-to-undefined-in-suggested-topics/78882 "2018-01-24T14:59:08Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![fefrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fefrei/32/119538_2.png) [@fefrei](https://meta.discourse.org/u/fefrei)
#### Post date: [January 24, 2018, 2:59pm UTC](https://meta.discourse.org/t/external-link-to-undefined-in-suggested-topics/78882/1 "2018-01-24T14:59:08Z")

</div>

While reading through Meta, I saw this:

 ![image](https://global.discourse-cdn.com/meta/original/3X/c/c/cc377c51dedc044e768b1d069921335bc343331d.png)

Notice that the [Hetzner VPS topic](https://meta.discourse.org/t/hetzner-launches-a-vps-service/78759) is shown to be a link to `undefined`.

The topic itself looks fine:

 ![image](https://global.discourse-cdn.com/meta/original/3X/6/b/6b29daa59b5b2014d7393f70d294001d4ba004ba.png)

My suspicion is that the domain is missing in the suggested topics payload, triggering the JavaScript payload to return `undefined`.

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [January 24, 2018, 8:26pm UTC](https://meta.discourse.org/t/external-link-to-undefined-in-suggested-topics/78882/2 "2018-01-24T20:26:04Z")

</div>

I saw that yesterday too. Only because while scrolling I fat-finger tapped it and got an error page which made me look. I was going to screen capture it if I saw it again and then post about it. I kept an eye out for it, and when the topic got another reply it again showed in my suggested - but - it showed “hetzner” and not “undefined”.

So it appears that not only was the link text not getting into Suggested, but neither was the link URL. As for it being OK the second time, I don’t have any idea.

\* I can’t recall if it was a new or unread, but I’m leaning towards it having been a new.

---

<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: [January 25, 2018, 12:59am UTC](https://meta.discourse.org/t/external-link-to-undefined-in-suggested-topics/78882/3 "2018-01-25T00:59:36Z")

</div>

Aha yes I just brought this to @neil’s attention as well.

---

<div class="post-metadata">

### Author: ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)
#### Post date: [January 25, 2018, 1:53am UTC](https://meta.discourse.org/t/external-link-to-undefined-in-suggested-topics/78882/4 "2018-01-25T01:53:33Z")

</div>

Hmm, I’m pretty sure it used to work. Added to my list.

---

<div class="post-metadata">

### Author: ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)
#### Post date: [January 25, 2018, 7:40pm UTC](https://meta.discourse.org/t/external-link-to-undefined-in-suggested-topics/78882/5 "2018-01-25T19:40:47Z")

</div>

Should be fixed now.

[https://github.com/discourse/discourse/commit/179ecee11e28325b301096770ab819adf433c5f3](https://github.com/discourse/discourse/commit/179ecee11e28325b301096770ab819adf433c5f3)

---

<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: [January 25, 2018, 7:44pm UTC](https://meta.discourse.org/t/external-link-to-undefined-in-suggested-topics/78882/6 "2018-01-25T19:44:18Z")

</div>


