# Link with %20 gets interpreted as %2520

**URL:** https://meta.discourse.org/t/link-with-20-gets-interpreted-as-2520/141138
**Category:** Bug
**Created:** [February 10, 2020, 3:01am UTC](https://meta.discourse.org/t/link-with-20-gets-interpreted-as-2520/141138 "2020-02-10T03:01:03Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Cardinalflyer](https://avatars.discourse-cdn.com/v4/letter/c/f14d63/32.png) [@Cardinalflyer](https://meta.discourse.org/u/Cardinalflyer)
#### Post date: [February 10, 2020, 3:01am UTC](https://meta.discourse.org/t/link-with-20-gets-interpreted-as-2520/141138/1 "2020-02-10T03:01:04Z")

</div>

I swear I’ve seen this discussed here before, but can’t find it, and my instance is doing this (Still? Again?)

When a link which includes an encoded %20 is pasted directly into the text stream, when clicked an extra %25 is added to the front of each %20, making the link invalid.

Of course %25 is the % encode. It seems very [similar to this issue.](https://meta.discourse.org/t/onebox-links-with-ampersands-dont-encode-correctly/69528)

The link which I’m looking at right now is this beauty:

### [SB480F%20Oil%20ServicingMetallic%20Solids%20Identification%20After%20Oil%20Servicing%20and%20Associated%20Corrective%20Action.pdf](https://www.lycoming.com/sites/default/files/SB480F%2520Oil%2520ServicingMetallic%2520Solids%2520Identification%2520After%2520Oil%2520Servicing%2520and%2520Associated%2520Corrective%2520Action.pdf)

Roll over the link and you’ll see that Meta is doing it. And, of course, that keeps it from working.

It does work if [entered as a link](https://www.lycoming.com/sites/default/files/SB480F%20Oil%20ServicingMetallic%20Solids%20Identification%20After%20Oil%20Servicing%20and%20Associated%20Corrective%20Action.pdf) rather than just the URL, but people don’t always do that and are tricky to train…

Of course it would be great if people didn’t put spaces in URL documents, but here we are.

I am on Discourse 2.3.9

---

<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: [February 11, 2020, 9:39am UTC](https://meta.discourse.org/t/link-with-20-gets-interpreted-as-2520/141138/2 "2020-02-11T09:39:48Z")

</div>

Sorry, what is the original link? Paste as a code block.

---

<div class="post-metadata">

### Author: ![Cardinalflyer](https://avatars.discourse-cdn.com/v4/letter/c/f14d63/32.png) [@Cardinalflyer](https://meta.discourse.org/u/Cardinalflyer)
#### Post date: [February 11, 2020, 2:20pm UTC](https://meta.discourse.org/t/link-with-20-gets-interpreted-as-2520/141138/3 "2020-02-11T14:20:30Z")

</div>

The link is as follows:

> [https://www.lycoming.com/sites/default/files/SB480F%20Oil%20ServicingMetallic%20Solids%20Identification%20After%20Oil%20Servicing%20and%20Associated%20Corrective%20Action.pdf](https://www.lycoming.com/sites/default/files/SB480F%20Oil%20ServicingMetallic%20Solids%20Identification%20After%20Oil%20Servicing%20and%20Associated%20Corrective%20Action.pdf)

---

<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 7, 2020, 7:49pm UTC](https://meta.discourse.org/t/link-with-20-gets-interpreted-as-2520/141138/4 "2020-06-07T19:49:34Z")

</div>

I can’t repro this .. pasting in the link

`https://www.lycoming.com/sites/default/files/SB480F%20Oil%20ServicingMetallic%20Solids%20Identification%20After%20Oil%20Servicing%20and%20Associated%20Corrective%20Action.pdf`

results in:

[https://www.lycoming.com/sites/default/files/SB480F%20Oil%20ServicingMetallic%20Solids%20Identification%20After%20Oil%20Servicing%20and%20Associated%20Corrective%20Action.pdf](https://www.lycoming.com/sites/default/files/SB480F%20Oil%20ServicingMetallic%20Solids%20Identification%20After%20Oil%20Servicing%20and%20Associated%20Corrective%20Action.pdf)

which looks pristine to me? Inserting via “insert hyperlink” also works OK. Perhaps this was a bug we already fixed?

---

<div class="post-metadata">

### Author: ![Cardinalflyer](https://avatars.discourse-cdn.com/v4/letter/c/f14d63/32.png) [@Cardinalflyer](https://meta.discourse.org/u/Cardinalflyer)
#### Post date: [June 8, 2020, 3:23pm UTC](https://meta.discourse.org/t/link-with-20-gets-interpreted-as-2520/141138/5 "2020-06-08T15:23:39Z")

</div>

> [@codinghorror](#):
>
> repro this

It does look fixed. If you roll over my link at the start of the topic you’ll see the extra %25’s added. The link you posted in your question doesn’t have them.

I’ll post the link here again to be sure it’s not just something about me…

[https://www.lycoming.com/sites/default/files/SB480F%20Oil%20ServicingMetallic%20Solids%20Identification%20After%20Oil%20Servicing%20and%20Associated%20Corrective%20Action.pdf](https://www.lycoming.com/sites/default/files/SB480F%20Oil%20ServicingMetallic%20Solids%20Identification%20After%20Oil%20Servicing%20and%20Associated%20Corrective%20Action.pdf)

---

<div class="post-metadata">

### Author: ![Cardinalflyer](https://avatars.discourse-cdn.com/v4/letter/c/f14d63/32.png) [@Cardinalflyer](https://meta.discourse.org/u/Cardinalflyer)
#### Post date: [June 8, 2020, 3:24pm UTC](https://meta.discourse.org/t/link-with-20-gets-interpreted-as-2520/141138/6 "2020-06-08T15:24:05Z")

</div>

Yep, that one is fixed! Great work all!

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [June 8, 2020, 7:51pm UTC](https://meta.discourse.org/t/link-with-20-gets-interpreted-as-2520/141138/7 "2020-06-08T19:51:35Z")

</div>


