Reputation: 33
I'm using a proxy to shorten url using Yourls, the proxy is calling jquery ajax method (GET) the url parameter of yourls-api.php passed is
http://localhost/webapp/default.aspx?x=499833&y=244716&resolution=1&layer=image&cc=uk
but the Yourls API is ignoring query string from second ampersand i.e the shortened url is redirecting with
http://localhost/webapp/default.aspx?x=499833
the longurl is encoded before passing it proxy.
Upvotes: 0
Views: 701
Reputation: 33
Instead of encoding complete query string, encoding only the value of url parameter fixed the problem.
original
http://rishi.kb/yourls-api.php?signature=123456&action=shorturl&format=json&url=http://localhost/webapp/default.aspx?x=499833&y=244716&resolution=1&layer=image&cc=uk
Upvotes: 1