I have javascript call which deletes an url from the user's
subscription. It looks like this:
anchor.href = "javascript:window.location.href='delete?url=" +
encodeURIComponent(url) + "'";
The problem is the handler on appengine doesn't process the parameter
properly if it has an ampersand in it. For example, the url
http://server/stuff?a=b&c=d
is passed to appengine as
delete?url=
http://server/stuff?a=b&c=d
so it thinks the url parameter ends at the ampersand:
url=
http://server/stuff?a=b
That's why I used encodeURIComponent, but it didn't help. I also tried
escape and encode, but they didn't work either.
Can it be a problem on the appengine part (incorrect query parameter
processing) or I should do something else in addition to
encodeURIComponent?