Forums

Prevent url encoding? (2 posts)

  1. nizdobs
    Member
    Posted 1 year ago #

    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

    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
    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

  2. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Try decoding the url on the incoming site:

    http://uk.php.net/manual/en/function.html-entity-decode.php

Topic Closed

This topic has been closed to new replies.

About this Topic