# Oneboxing: Wikipedia links are broken with umlauts

**URL:** https://meta.discourse.org/t/oneboxing-wikipedia-links-are-broken-with-umlauts/27025
**Category:** Bug
**Created:** [31.Март.2015 14:04:38 UTC](https://meta.discourse.org/t/oneboxing-wikipedia-links-are-broken-with-umlauts/27025 "2015-03-31T14:04:38Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![terraboss](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/terraboss/32/381157_2.png) [@terraboss](https://meta.discourse.org/u/terraboss)
#### Post date: [31.Март.2015 14:04:38 UTC](https://meta.discourse.org/t/oneboxing-wikipedia-links-are-broken-with-umlauts/27025/1 "2015-03-31T14:04:38Z")

</div>

I didn’t found any complaints / solutions regarding to this issue. It’s interesting: In the moment you’re initially copy such a link with umlaut onboxing seems to create a preview. After adding a new line or by posting the preview disappears.

 ![](https://global.discourse-cdn.com/meta/original/3X/4/8/48c9499702069492338dc78c07ea26f5df1f70cd.png) 

And even more interesting: Just here at meta, after posting, the onboxing is working.

For example:

> **[Röntgenstrahlung](https://de.wikipedia.org/wiki/R%C3%B6ntgenstrahlung)**
>
> Röntgenstrahlung oder Röntgenstrahlen sind elektromagnetische Wellen mit Quantenenergien oberhalb etwa 100 eV, entsprechend Wellenlängen unter etwa 10 nm. Röntgenstrahlung liegt im elektromagnetischen Spektrum im Energiebereich oberhalb des ultravioletten Lichts. Von der Gammastrahlung unterscheidet sie sich durch die Art der Entstehung: Gammastrahlung sind Photonen, die durch Kernreaktionen oder radioaktive Zerfälle entstehen, während Röntgenstrahlung aus der Geschwindigkeitsänderung geladener ...

Thanks in advance  
Markus

---

<div class="post-metadata">

### Author: ![elberet](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elberet/32/122404_2.png) [@elberet](https://meta.discourse.org/u/elberet)
#### Post date: [31.Март.2015 18:23:19 UTC](https://meta.discourse.org/t/oneboxing-wikipedia-links-are-broken-with-umlauts/27025/2 "2015-03-31T18:23:19Z")

</div>

So… basically, everything works? What’s the actual problem?

The markdown parser looks for eligible links for oneboxing and tags these with a special `class`. In the post preview, such links are turned into oneboxes live, but in posted messages a background job replaces the link with the actual onebox content in the cooked HTML. This job is run asynchronously by sidekiq, so it is possible that the post will become visible in the frontend before the processing job has replaced the onebox.

---

<div class="post-metadata">

### Author: ![terraboss](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/terraboss/32/381157_2.png) [@terraboss](https://meta.discourse.org/u/terraboss)
#### Post date: [31.Март.2015 18:41:09 UTC](https://meta.discourse.org/t/oneboxing-wikipedia-links-are-broken-with-umlauts/27025/3 "2015-03-31T18:41:09Z")

</div>

The actual problem is, that onbox links with umlauts doesn’t work at my discourse properly.

I can’t explain why. Here at meta it seems to work fine except in preview.

---

<div class="post-metadata">

### Author: ![elberet](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elberet/32/122404_2.png) [@elberet](https://meta.discourse.org/u/elberet)
#### Post date: [31.Март.2015 18:42:17 UTC](https://meta.discourse.org/t/oneboxing-wikipedia-links-are-broken-with-umlauts/27025/4 "2015-03-31T18:42:17Z")

</div>

Do you have any error messages in `/logs` ?

---

<div class="post-metadata">

### Author: ![terraboss](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/terraboss/32/381157_2.png) [@terraboss](https://meta.discourse.org/u/terraboss)
#### Post date: [31.Март.2015 19:00:26 UTC](https://meta.discourse.org/t/oneboxing-wikipedia-links-are-broken-with-umlauts/27025/5 "2015-03-31T19:00:26Z")

</div>

There are no errors. It’s just not working.

In first place, after adding the link, the onbox is shown correctly. But after a space or new line, the onbox disappears. And in contrast to this discourse installation (Meta), my one isn’t showing the onbox correctly after posting.

##After adding the link.

 ![](https://global.discourse-cdn.com/meta/original/3X/4/1/41e6b703ac46c8c6d12ebd48b2875bd56740fd1d.png)

##After adding some new lines / adding a space

 ![](https://global.discourse-cdn.com/meta/original/3X/e/e/ee12a091a3d1c38a76c862fdc36dd3ad3e4a5a4f.png)

---

<div class="post-metadata">

### Author: ![elberet](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elberet/32/122404_2.png) [@elberet](https://meta.discourse.org/u/elberet)
#### Post date: [31.Март.2015 19:48:36 UTC](https://meta.discourse.org/t/oneboxing-wikipedia-links-are-broken-with-umlauts/27025/6 "2015-03-31T19:48:36Z")

</div>

Oh, I see. Weird, I couldn’t reproduce this the first time around. Something is definitely bugged here…

---

<div class="post-metadata">

### Author: ![terraboss](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/terraboss/32/381157_2.png) [@terraboss](https://meta.discourse.org/u/terraboss)
#### Post date: [31.Март.2015 19:52:53 UTC](https://meta.discourse.org/t/oneboxing-wikipedia-links-are-broken-with-umlauts/27025/7 "2015-03-31T19:52:53Z")

</div>

I’m using discourse v1.3.0.beta4 +85 (5f8bd16)

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [01.Январь.2016 15:44:25 UTC](https://meta.discourse.org/t/oneboxing-wikipedia-links-are-broken-with-umlauts/27025/8 "2016-01-01T15:44:25Z")

</div>

@terraboss are you still having this issue?

I am not able to repro this here on meta or locally.

---

<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: [05.Январь.2016 03:21:19 UTC](https://meta.discourse.org/t/oneboxing-wikipedia-links-are-broken-with-umlauts/27025/9 "2016-01-05T03:21:19Z")

</div>


