Title: Prevent url encoding?
Last modified: August 19, 2016

---

# Prevent url encoding?

 *  [nizdobs](https://wordpress.org/support/users/nizdobs/)
 * (@nizdobs)
 * [15 years, 12 months ago](https://wordpress.org/support/topic/prevent-url-encoding/)
 * I have a page that includes some javascript that passes the user to another site
   through the use of a window.open command. The site I pass them to requires two
   arguments be passed in the HTTP header so the javascript I write looks like this:
   [http://www.newSite.com/search.aspx?Keywords=myKeyword&orgID=12345](http://www.newSite.com/search.aspx?Keywords=myKeyword&orgID=12345)
 * However, when this code executes from within wordpress the url that gets called
   is:
    [http://www.newSite.com/search.aspx?Keywords=myKeyword&#038:orgID=12345](http://www.newSite.com/search.aspx?Keywords=myKeyword&#038:orgID=12345)
   Note that the ampersand that separates the Keywords parameter and the orgID parameter
   has been encoded to &#038. As a result, when newSite.com sees the HTTP header
   it does not know what the orgID is.
 * Is there some way I can tell wordpress to make my window.open call as it is without
   modifying the url?
 * Thanks,
 * – Niz

Viewing 1 replies (of 1 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 12 months ago](https://wordpress.org/support/topic/prevent-url-encoding/#post-1525742)
 * Try decoding the url on the incoming site:
 * [http://uk.php.net/manual/en/function.html-entity-decode.php](http://uk.php.net/manual/en/function.html-entity-decode.php)

Viewing 1 replies (of 1 total)

The topic ‘Prevent url encoding?’ is closed to new replies.

## Tags

 * [url encoding](https://wordpress.org/support/topic-tag/url-encoding/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [15 years, 12 months ago](https://wordpress.org/support/topic/prevent-url-encoding/#post-1525742)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
