{"action":"closed","issue":{"url":"https://api.github.com/repos/unbxd/js-sdk/issues/28","repository_url":"https://api.github.com/repos/unbxd/js-sdk","labels_url":"https://api.github.com/repos/unbxd/js-sdk/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/unbxd/js-sdk/issues/28/comments","events_url":"https://api.github.com/repos/unbxd/js-sdk/issues/28/events","html_url":"https://github.com/unbxd/js-sdk/issues/28","id":139301569,"number":28,"title":"When querying for 2UTT000000(example), the search API is fired for *","user":{"login":"albingeorge","id":1938077,"avatar_url":"https://avatars.githubusercontent.com/u/1938077?v=3","gravatar_id":"","url":"https://api.github.com/users/albingeorge","html_url":"https://github.com/albingeorge","followers_url":"https://api.github.com/users/albingeorge/followers","following_url":"https://api.github.com/users/albingeorge/following{/other_user}","gists_url":"https://api.github.com/users/albingeorge/gists{/gist_id}","starred_url":"https://api.github.com/users/albingeorge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/albingeorge/subscriptions","organizations_url":"https://api.github.com/users/albingeorge/orgs","repos_url":"https://api.github.com/users/albingeorge/repos","events_url":"https://api.github.com/users/albingeorge/events{/privacy}","received_events_url":"https://api.github.com/users/albingeorge/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"rahulcs","id":624925,"avatar_url":"https://avatars.githubusercontent.com/u/624925?v=3","gravatar_id":"","url":"https://api.github.com/users/rahulcs","html_url":"https://github.com/rahulcs","followers_url":"https://api.github.com/users/rahulcs/followers","following_url":"https://api.github.com/users/rahulcs/following{/other_user}","gists_url":"https://api.github.com/users/rahulcs/gists{/gist_id}","starred_url":"https://api.github.com/users/rahulcs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rahulcs/subscriptions","organizations_url":"https://api.github.com/users/rahulcs/orgs","repos_url":"https://api.github.com/users/rahulcs/repos","events_url":"https://api.github.com/users/rahulcs/events{/privacy}","received_events_url":"https://api.github.com/users/rahulcs/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2016-03-08T15:11:23Z","updated_at":"2016-03-09T07:25:32Z","closed_at":"2016-03-09T07:25:32Z","body":"This seems to be an issue with decoding URL params.\r\n\r\nExample:\r\n```\r\nhttp://search.himalayastore.com/?q=2UTT000000\r\n```\r\n![sdk-issue](https://cloud.githubusercontent.com/assets/1938077/13605315/e7209574-e56c-11e5-9fda-c64892200f6a.png)\r\n\r\nIn here, the search query is for `2UTT000000`, but the search API is getting fired for `*`.\r\n\r\nI debugged a bit and figured out that this happens for those sites which have `noEncoding` set to `false` by default.\r\n\r\nIn soccercorner, encoding is set, and for this, the correct search API is getting fired:\r\n```\r\nhttp://soccercorner.unbxdapi.com/?q=2UTT000000\r\n```\r\n\r\nTo be a bit more specific, the `decode` function is returning the below object:\r\n```\r\n썔M: \"4Ӎ4\"\r\n```\r\n\r\nAnd because of this, even if the URL(`q=2UTT000000`) is not encoded, the value for `decodedParamscount` returns > 0.\r\n![sdk-issue-decoded](https://cloud.githubusercontent.com/assets/1938077/13605515/e4b81504-e56d-11e5-9f72-2ad1988763b1.png)\r\n"}}