# Pasting a link with a hashtag using the hyperlink button replaces the hashtag with its url encoding

**URL:** https://meta.discourse.org/t/pasting-a-link-with-a-hashtag-using-the-hyperlink-button-replaces-the-hashtag-with-its-url-encoding/25416
**Category:** Bug
**Created:** [19.Февраль.2015 18:20:30 UTC](https://meta.discourse.org/t/pasting-a-link-with-a-hashtag-using-the-hyperlink-button-replaces-the-hashtag-with-its-url-encoding/25416 "2015-02-19T18:20:30Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![aobauer](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@aobauer](https://meta.discourse.org/u/aobauer)
#### Post date: [19.Февраль.2015 18:20:30 UTC](https://meta.discourse.org/t/pasting-a-link-with-a-hashtag-using-the-hyperlink-button-replaces-the-hashtag-with-its-url-encoding/25416/1 "2015-02-19T18:20:30Z")

</div>

Say I want to post the link: [Jeff Atwood - Wikipedia](http://en.wikipedia.org/wiki/Jeff_Atwood#External_links)

If I create [a text link](http://en.wikipedia.org/wiki/Jeff_Atwood%23External_links) using the hyperlink button, and paste in the above link, it becomes:

```
http://en.wikipedia.org/wiki/Jeff_Atwood%23External_links

```

The # was replaced with %23. Unfortunately, some webpages can’t handle that switch as well as Wikipedia, so links break.

---

<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: [20.Февраль.2015 03:31:30 UTC](https://meta.discourse.org/t/pasting-a-link-with-a-hashtag-using-the-hyperlink-button-replaces-the-hashtag-with-its-url-encoding/25416/2 "2015-02-20T03:31:30Z")

</div>

@techapj can you take this?

---

<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: [20.Февраль.2015 17:59:23 UTC](https://meta.discourse.org/t/pasting-a-link-with-a-hashtag-using-the-hyperlink-button-replaces-the-hashtag-with-its-url-encoding/25416/3 "2015-02-20T17:59:23Z")

</div>

Fixed via

[https://github.com/discourse/discourse/pull/3217](https://github.com/discourse/discourse/pull/3217)

---

<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: [20.Февраль.2015 17:59:41 UTC](https://meta.discourse.org/t/pasting-a-link-with-a-hashtag-using-the-hyperlink-button-replaces-the-hashtag-with-its-url-encoding/25416/4 "2015-02-20T17:59:41Z")

</div>


