# Onebox codifica comillas simples en la URL, rompiendo el enlace

**URL:** <https://meta.discourse.org/t/onebox-encodes-single-quotes-in-url-breaking-the-link/115947>\
**Category:** Bug\
**Created:** [25 Abril, 2019 11:04 UTC](https://meta.discourse.org/t/onebox-encodes-single-quotes-in-url-breaking-the-link/115947 "2019-04-25T11:04:43Z")\
**Posts on this page:** 1\
**Showing post:** 3

<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:** [26 Abril, 2019 00:51 UTC](https://meta.discourse.org/t/onebox-encodes-single-quotes-in-url-breaking-the-link/115947/3 "2019-04-26T00:51:55Z")

</div>

We should follow the spec here with our encoding. Technically I think we got to allow stuff like `(` and `)` through cause wikipedia can use that. Even `&` is allowed according to spec eg: `https://en.wikipedia.org/wiki/&`

see: [https://stackoverflow.com/a/4669755/17174](https://stackoverflow.com/a/4669755/17174)

> **[RFC 3986: Uniform Resource Identifier (URI): Generic Syntax](https://datatracker.ietf.org/doc/html/rfc3986)**
>
> A Uniform Resource Identifier (URI) is a compact sequence of characters that identifies an abstract or physical resource. This specification defines the generic URI syntax and a process for resolving URI references that might be in relative form,...

I guess we need one rule for encoding the query params and another for encoding the path.

---

_[View the full topic](https://meta.discourse.org/t/onebox-encodes-single-quotes-in-url-breaking-the-link/115947)._
