# HTML.ElementFromURL containing #

**URL:** <https://forums.plex.tv/t/html-elementfromurl-containing/16735>\
**Category:** Dev/API Corner\
**Tags:** plugin-dev\
**Created:** [April 17, 2012, 12:28am UTC](https://forums.plex.tv/t/html-elementfromurl-containing/16735 "2012-04-17T00:28:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Synlor](https://avatars.discourse-cdn.com/v4/letter/s/8797f3/32.png) [@Synlor](https://forums.plex.tv/u/Synlor)\
**Post date:** [April 17, 2012, 12:28am UTC](https://forums.plex.tv/t/html-elementfromurl-containing/16735/1 "2012-04-17T00:28:06Z")

</div>

Hi, I’m trying to open a url using HTML.ElementFromURL with a string that has the # symbol in it. Logging the url string beforehand reveals that it contains all the info, i.e.

```auto

http://www.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Dinstant-video&field-keywords=test#/ref=sr_nr_p_85_0?rh=n%3A2625373011%2Cn%3A%212644981011%2Cn%3A%212644982011%2Cn%3A2858778011%2Ck%3Atest%2Cp_85%3A2470955011&keywords=test&ie=UTF8

```

  
  
but when I try putting it through HTML.ElementFromURL, the log gives   

```auto

<br />
Requesting 'http://www.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Dinstant-video&field-keywords=test'<br />

```

  
  
where it truncates everything after the # symbol. I've tried escaping it with a \ in front with no success. I've also tried replacing it altogether with %23 from the url encoding tables, but then the page doesn't open correctly, i.e. the prime option is not checked.  
  
Any thoughts on how to proceed?

---

<div class="post-metadata">

**Author:** ![sander1](https://avatars.discourse-cdn.com/v4/letter/s/4bbf92/32.png) [@sander1](https://forums.plex.tv/u/sander1)\
**Post date:** [May 2, 2012, 2:58pm UTC](https://forums.plex.tv/t/html-elementfromurl-containing/16735/2 "2012-05-02T14:58:39Z")

</div>

Hello Synlor,  
  
The # in the url is used to navigate to anchors inside the page or do some smart AJAX (javascript) stuff. The part after the # also never gets sent to the server when you request a webpage.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [December 20, 2019, 9:50pm UTC](https://forums.plex.tv/t/html-elementfromurl-containing/16735/3 "2019-12-20T21:50:24Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
