{"action":"opened","issue":{"url":"https://api.github.com/repos/BlueSpire/Durandal/issues/615","labels_url":"https://api.github.com/repos/BlueSpire/Durandal/issues/615/labels{/name}","comments_url":"https://api.github.com/repos/BlueSpire/Durandal/issues/615/comments","events_url":"https://api.github.com/repos/BlueSpire/Durandal/issues/615/events","html_url":"https://github.com/BlueSpire/Durandal/issues/615","id":53546006,"number":615,"title":"Router: IE8 fails parsing query strings","user":{"login":"johnhunter","id":219160,"avatar_url":"https://avatars.githubusercontent.com/u/219160?v=3","gravatar_id":"","url":"https://api.github.com/users/johnhunter","html_url":"https://github.com/johnhunter","followers_url":"https://api.github.com/users/johnhunter/followers","following_url":"https://api.github.com/users/johnhunter/following{/other_user}","gists_url":"https://api.github.com/users/johnhunter/gists{/gist_id}","starred_url":"https://api.github.com/users/johnhunter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnhunter/subscriptions","organizations_url":"https://api.github.com/users/johnhunter/orgs","repos_url":"https://api.github.com/users/johnhunter/repos","events_url":"https://api.github.com/users/johnhunter/events{/privacy}","received_events_url":"https://api.github.com/users/johnhunter/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-06T18:27:02Z","updated_at":"2015-01-06T18:27:02Z","closed_at":null,"body":"When using the router with a query string IE8 fails to return the query key/values\r\n\r\n**For example:**\r\ndefine a route `'product/:id'`\r\nnavigate to `product/123?color=red`\r\n\r\n**Expected:**\r\n`activate` called with args `123, { color: 'red' }`\r\n\r\n**Actual (IE8):**\r\n`activate` called with args `123, {}`\r\n\r\n**Version:**\r\n2.1.0\r\n\r\nThis appears to be an issue with [x-bowser compatibility](http://blog.stevenlevithan.com/archives/cross-browser-split) when using string.split with regexs. The following line fails to return a value for the param:\r\n[src/plugins/js/router.js#L550](https://github.com/BlueSpire/Durandal/blob/master/src/plugins/js/router.js#L550)\r\n\r\nChanging to use string.match solves the problem. I'll raise a pull request.\r\n\r\n```js\r\nvar parts = pair.match(/(.+)?=(.+)?/),\r\n    key = parts[1],\r\n    value = parts[2] && decodeURIComponent(parts[2].replace(/\\+/g, ' '));\r\n```\r\n"}}