I'm trying to do a jQuery Ajax call to a URL that has a # sign in it. For example:
https://www.foo.com/myapp/app/#ptc1/tcomp/infoPage?oid=VR:wt.doc.WTDocument:1272991906
However, the URL being called by the Ajax call is being truncated to just "https://www.foo.com/myapp/app/". It appears as this is because jQuery treats the # sign as an anchor designator and strips everything after it off of the URL.
So, I tried using both encodeUriComponent and doing a straight up replace to convert the # sign to it's hex equivilent of %23. However, if I do that and call the URL, I then get a 404.
Is there any way around this or is the fault on the server for not understanding that %23 is the same as #?
UPDATE
Maybe I should re-phrase this question, as it is not getting any answers.
Is there any way to tell JQuery to NOT strip off everything after the # sign in a URL for an Ajax call?