# Onebox problem with i18n urls

**URL:** https://meta.discourse.org/t/onebox-problem-with-i18n-urls/119254
**Category:** Feature
**Created:** [June 1, 2019, 12:18am UTC](https://meta.discourse.org/t/onebox-problem-with-i18n-urls/119254 "2019-06-01T00:18:27Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![jtsagata](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jtsagata/32/138968_2.png) [@jtsagata](https://meta.discourse.org/u/jtsagata)
#### Post date: [June 1, 2019, 12:18am UTC](https://meta.discourse.org/t/onebox-problem-with-i18n-urls/119254/1 "2019-06-01T00:18:27Z")

</div>

Onebox have problem with some links from a wordpress site. The problem seems to have something with not latin characters in the url.

2 links to demonstrate the problem is [this](https://cerebrux.net/2019/05/28/brave-browser-%ce%bf-%ce%b4%ce%af%ce%ba%ce%b1%ce%b9%ce%bf%cf%82-browser-%cf%80%ce%bf%cf%85-%cf%80%cf%81%ce%bf%cf%83%cf%86%ce%ad%cf%81%ce%b5%ce%b9-%cf%84%ce%b1%cf%87%cf%8d%cf%84%ce%b7%cf%84%ce%b1/) and [this](https://cerebrux.net/2019/06/01/google-chrome-%ce%b4%ce%b5%ce%bd-%ce%b8%ce%b1-%ce%bc%cf%80%ce%bf%cf%81%ce%bf%cf%8d%ce%bc%ce%b5-%ce%bd%ce%b1-%ce%ad%cf%87%ce%bf%cf%85%ce%bc%ce%b5-adblocks/). I can follow the links in the inline version, but not from the onebox version. Same if i use a url shorten service.

The same links onebox version

> **[Brave browser | Ο δίκαιος browser που προσφέρει ταχύτητα, ασφάλεια,...](https://cerebrux.net/2019/05/28/brave-browser-%ce%bf-%ce%b4%ce%af%ce%ba%ce%b1%ce%b9%ce%bf%cf%82-browser-%cf%80%ce%bf%cf%85-%cf%80%cf%81%ce%bf%cf%83%cf%86%ce%ad%cf%81%ce%b5%ce%b9-%cf%84%ce%b1%cf%87%cf%8d%cf%84%ce%b7%cf%84%ce%b1/)**
>
> Ο Brave browser είναι ένας ανοιχτού κώδικα browser που ξεχωρίζει επειδή φορτώνει τα άκρως απαραίτητα για μια ασφαλή, ταχύτατη και χωρίς παρακολουθήσεις εμπειρία πλοήγησης στο Internet. Έτσι οι ιστο…

> **[Google Chrome: Δεν θα μπορούμε να έχουμε Adblocks](https://cerebrux.net/2019/06/01/google-chrome-%ce%b4%ce%b5%ce%bd-%ce%b8%ce%b1-%ce%bc%cf%80%ce%bf%cf%81%ce%bf%cf%8d%ce%bc%ce%b5-%ce%bd%ce%b1-%ce%ad%cf%87%ce%bf%cf%85%ce%bc%ce%b5-adblocks/)**
>
> Οι γνωστοί μηχανισμοί αποκλεισμού διαφημίσεων στις ιστοσελίδες (adblocks), όπως το Adblock Plus, το uBlock Origin, το Ghostery κλπ, σύντομα θα σταματήσουν να δουλεύουν στον Chrome.…

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [June 1, 2019, 12:42am UTC](https://meta.discourse.org/t/onebox-problem-with-i18n-urls/119254/2 "2019-06-01T00:42:24Z")

</div>

Those aren’t valid URLs.

They are [Internationalized Resource Identifier - Wikipedia](https://en.wikipedia.org/wiki/Internationalized_Resource_Identifier) which don’t get the same treatment.

---

<div class="post-metadata">

### Author: ![jtsagata](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jtsagata/32/138968_2.png) [@jtsagata](https://meta.discourse.org/u/jtsagata)
#### Post date: [June 1, 2019, 6:57am UTC](https://meta.discourse.org/t/onebox-problem-with-i18n-urls/119254/3 "2019-06-01T06:57:54Z")

</div>

Valid or invalid many of the local sites use this form and that is outside our control. For example all of the Greek wikipedia

> **[Αρχαία Ρώμη](https://el.wikipedia.org/wiki/%CE%91%CF%81%CF%87%CE%B1%CE%AF%CE%B1_%CE%A1%CF%8E%CE%BC%CE%B7)**
>
> Συντεταγμένες: 41°53′N 12°29′E﻿ / ﻿41.89°N 12.48°E﻿ / 41.89; 12.48 Η αρχαία Ρώμη ήταν αρχικά ένας ιταλικός οικισμός, που χρονολογείται από τον 8ο αιώνα π.Χ. και αναπτύχθηκε στην πόλη της Ρώμης και στη συνέχεια έδωσε το όνομά του στην αυτοκρατορία, της οποίας αποτέλεσε την έδρα, καθώς και στον εκτεταμένο πολιτισμό που ανέπτυξε συνολικά η αυτοκρατορία. Ανήκοντας γεωγραφικά στον χώρο της Μεσογείου Θάλασσας και με επίκεντρο τη Ρώμη, εξελίχθηκε σε μία από τις μεγαλύτερες αυτοκρατορίες του αρχαίου κόσ...

And as everything seems to work, and the onebox is created it was not detectable by the end user. Why not just pass the link as given, or the short url as given;

Is there any way to detect and don’t make onebox it such cases, or to disable onebox completly?

---

<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: [June 1, 2019, 10:56am UTC](https://meta.discourse.org/t/onebox-problem-with-i18n-urls/119254/4 "2019-06-01T10:56:09Z")

</div>

> [@jtsagata](#):
>
> Is there any way to detect and don’t make onebox it such cases, or to disable onebox completly?

Yes, trivially, just enter a space (or any other character or text) before the link.

You can also blacklist the domain from oneboxing in your site settings.

---

<div class="post-metadata">

### Author: ![lionel-rowe](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lionel-rowe/32/134288_2.png) [@lionel-rowe](https://meta.discourse.org/u/lionel-rowe)
#### Post date: [June 1, 2019, 1:45pm UTC](https://meta.discourse.org/t/onebox-problem-with-i18n-urls/119254/5 "2019-06-01T13:45:44Z")

</div>

> [@Falco](#):
>
> Those aren’t valid URLs.
> 
> They are [Internationalized Resource Identifier - Wikipedia](https://en.wikipedia.org/wiki/Internationalized_Resource_Identifier) which don’t get the same treatment.

It doesn’t look like it. [Raw](https://meta.discourse.org/raw/119254):

```plaintext
https://cerebrux.net/2019/05/28/brave-browser-%ce%bf-%ce%b4%ce%af%ce%ba%ce%b1%ce%b9%ce%bf%cf%82-browser-%cf%80%ce%bf%cf%85-%cf%80%cf%81%ce%bf%cf%83%cf%86%ce%ad%cf%81%ce%b5%ce%b9-%cf%84%ce%b1%cf%87%cf%8d%cf%84%ce%b7%cf%84%ce%b1/

```

In the onebox link, this gets double-encoded to this:

```plaintext
https://cerebrux.net/2019/05/28/brave-browser-%25ce%25bf-%25ce%25b4%25ce%25af%25ce%25ba%25ce%25b1%25ce%25b9%25ce%25bf%25cf%2582-browser-%25cf%2580%25ce%25bf%25cf%2585-%25cf%2580%25cf%2581%25ce%25bf%25cf%2583%25cf%2586%25ce%25ad%25cf%2581%25ce%25b5%25ce%25b9-%25cf%2584%25ce%25b1%25cf%2587%25cf%258d%25cf%2584%25ce%25b7%25cf%2584%25ce%25b1/

```

The confusion may stem from the fact that Chrome and Firefox both _display_ URIs as IRIs, e.g. in the address bar, for ease of reading.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [June 1, 2019, 2:38pm UTC](https://meta.discourse.org/t/onebox-problem-with-i18n-urls/119254/6 "2019-06-01T14:38:32Z")

</div>

Oh I see now, so it’s a report of a regression of [Onebox breaks if there's chinese text in URL - #13 by tgxworld](https://meta.discourse.org/t/onebox-breaks-if-theres-chinese-text-in-url/67364/13) ?

I’m confused, because the oneboxes in OP are working fine for me in both Firefox and Chrome…

---

<div class="post-metadata">

### Author: ![lionel-rowe](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lionel-rowe/32/134288_2.png) [@lionel-rowe](https://meta.discourse.org/u/lionel-rowe)
#### Post date: [June 3, 2019, 7:28pm UTC](https://meta.discourse.org/t/onebox-problem-with-i18n-urls/119254/7 "2019-06-03T19:28:06Z")

</div>

> [@Falco](#):
>
> Oh I see now, so it’s a report of a regression of [Onebox breaks if there’s chinese text in URL](https://meta.discourse.org/t/onebox-breaks-if-theres-chinese-text-in-url/67364/13) ?

Looks like it. I guess the cooked versions are cached in that thread, but here’s the same link:

> **[Свободное программное обеспечение](https://ru.wikipedia.org/wiki/%D0%A1%D0%B2%D0%BE%D0%B1%D0%BE%D0%B4%D0%BD%D0%BE%D0%B5_%D0%BF%D1%80%D0%BE%D0%B3%D1%80%D0%B0%D0%BC%D0%BC%D0%BD%D0%BE%D0%B5_%D0%BE%D0%B1%D0%B5%D1%81%D0%BF%D0%B5%D1%87%D0%B5%D0%BD%D0%B8%D0%B5)**
>
> Свободное программное обеспе́чение (СПО, англ. free software, также software libre или libre software), свободный софт или свободные программы — программное обеспечение, пользователи которого имеют права («свободы») на его неограниченную установку, запуск, свободное использование, изучение, распространение и изменение (совершенствование), а также распространение копий и результатов изменения. Если на программное обеспечение есть исключительные права, то свободы объявляются при помощи свобод Как и...

The onebox looks fine, but upon clicking the link, I get an error page (“Недопустимое название”) in both Chromium 74 and Firefox 67 (Ubuntu 18.04.2).

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [June 6, 2019, 7:26am UTC](https://meta.discourse.org/t/onebox-problem-with-i18n-urls/119254/8 "2019-06-06T07:26:45Z")

</div>

@tgxworld adding for your list to look at this, not a high priority but since you worked on the original makes sense you take this one.

---

<div class="post-metadata">

### Author: ![jtsagata](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jtsagata/32/138968_2.png) [@jtsagata](https://meta.discourse.org/u/jtsagata)
#### Post date: [September 4, 2019, 6:04pm UTC](https://meta.discourse.org/t/onebox-problem-with-i18n-urls/119254/9 "2019-09-04T18:04:51Z")

</div>

Thanks for solving the problem in the latest version
