# Oneboxing of sites with hash (#) in URL not working

**URL:** <https://meta.discourse.org/t/oneboxing-of-sites-with-hash-in-url-not-working/66804>\
**Category:** Bug\
**Created:** [2017 年 7 月 25 日午後 6:46 UTC](https://meta.discourse.org/t/oneboxing-of-sites-with-hash-in-url-not-working/66804 "2017-07-25T18:46:10Z")\
**Posts on this page:** 1\
**Showing post:** 6

<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:** [2017 年 7 月 26 日午前 11:42 UTC](https://meta.discourse.org/t/oneboxing-of-sites-with-hash-in-url-not-working/66804/6 "2017-07-26T11:42:28Z")

</div>

`#` should not be encoded on the right hand side of the URL; that’s not correct. I think what’s happening is we are mixing logic for URL paths and querystring stuff.

> **[URI fragment](https://en.wikipedia.org/wiki/Fragment_identifier)**
>
> In computer hypertext, a URI fragment is a string of characters that refers to a resource that is subordinate to another, primary resource. The primary resource is identified by a Uniform Resource Identifier (URI), and the fragment identifier points to the subordinate resource.
> The fragment identifier introduced by a hash mark # is the optional last part of a URL for a document. It is typically used to identify a portion of that document. The generic syntax is specified in RFC 3986. The hash ma...

Operative words beng “the optional _last part of a URL_”

---

_[View the full topic](https://meta.discourse.org/t/oneboxing-of-sites-with-hash-in-url-not-working/66804)._
