{"action":"opened","issue":{"url":"https://api.github.com/repos/emberjs/data/issues/4106","labels_url":"https://api.github.com/repos/emberjs/data/issues/4106/labels{/name}","comments_url":"https://api.github.com/repos/emberjs/data/issues/4106/comments","events_url":"https://api.github.com/repos/emberjs/data/issues/4106/events","html_url":"https://github.com/emberjs/data/issues/4106","id":127756923,"number":4106,"title":"build url mixin uses encodeURIComponent on URI segments","user":{"login":"chrisseto","id":5532905,"avatar_url":"https://avatars.githubusercontent.com/u/5532905?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisseto","html_url":"https://github.com/chrisseto","followers_url":"https://api.github.com/users/chrisseto/followers","following_url":"https://api.github.com/users/chrisseto/following{/other_user}","gists_url":"https://api.github.com/users/chrisseto/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisseto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisseto/subscriptions","organizations_url":"https://api.github.com/users/chrisseto/orgs","repos_url":"https://api.github.com/users/chrisseto/repos","events_url":"https://api.github.com/users/chrisseto/events{/privacy}","received_events_url":"https://api.github.com/users/chrisseto/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-20T18:48:26Z","updated_at":"2016-01-20T18:48:26Z","closed_at":null,"body":"[Relevant line of code](https://github.com/emberjs/data/blob/master/addon/-private/adapters/build-url-mixin.js#L99)\r\n\r\n`encodeURIComponent` is used for encoding query parameters.\r\n```javascript\r\nencodeURIComponent('=') // -> '%3D'\r\nencodeURIComponent('?') // -> '%3F'\r\nencodeURIComponent(':') // -> '%3A'\r\n```\r\n\r\n```javascript\r\nencodeURI('=') // -> '='\r\nencodeURI('?') // -> '?'\r\nencodeURI(':') // -> ':'\r\n```\r\n\r\nMy resource ids contain `:`s, when sending a request to my server I expect ember-data to leave these characters untouched but it escapes them.\r\n\r\nThis seems like incorrect default behavior.\r\n\r\n```javascript\r\n// GET /v1/resource/name%3Sspaced\r\nthis.store.find('resource', 'name:spaced');\r\n```\r\n\r\nI'd submit a PR but I'm not sure if this specific behavior is relied on anywhere or if the RESTadapter is the only class that inserts that field into a URL segment."}}