{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular/issues/10280","repository_url":"https://api.github.com/repos/angular/angular","labels_url":"https://api.github.com/repos/angular/angular/issues/10280/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/10280/comments","events_url":"https://api.github.com/repos/angular/angular/issues/10280/events","html_url":"https://github.com/angular/angular/issues/10280","id":167468244,"number":10280,"title":"Using parenthesis in parameters throws an exception in RC4","user":{"login":"felipedrumond","id":17038136,"avatar_url":"https://avatars.githubusercontent.com/u/17038136?v=3","gravatar_id":"","url":"https://api.github.com/users/felipedrumond","html_url":"https://github.com/felipedrumond","followers_url":"https://api.github.com/users/felipedrumond/followers","following_url":"https://api.github.com/users/felipedrumond/following{/other_user}","gists_url":"https://api.github.com/users/felipedrumond/gists{/gist_id}","starred_url":"https://api.github.com/users/felipedrumond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felipedrumond/subscriptions","organizations_url":"https://api.github.com/users/felipedrumond/orgs","repos_url":"https://api.github.com/users/felipedrumond/repos","events_url":"https://api.github.com/users/felipedrumond/events{/privacy}","received_events_url":"https://api.github.com/users/felipedrumond/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-07-25T21:18:25Z","updated_at":"2016-07-26T16:58:57Z","closed_at":null,"body":"**I'm submitting a ...**  (check one with \"x\")\r\n```\r\n[x] bug report\r\n[ ] feature request\r\n[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question\r\n```\r\n\r\n**Current behavior**\r\nWhen trying to access a route using parameters that contain parenthesis, the application throws an exception: Error: Uncaught (in promise): Error: Cannot match any routes: '724,692'\r\n\r\nWhen accessing **http://localhost:5000/abajur;f=(724,692)**, the application throws the above mentioned exception. \r\n\r\nOn the other hand, **http://localhost:5000/abajur;f=724,692** runs as expected.\r\n\r\n**Expected/desired behavior**\r\nRoute parameters should be allowed to contain parenthesis. \r\n\r\n**Reproduction of the problem**\r\nIf the current behavior is a bug or you can illustrate your feature request better with an example, please provide the steps to reproduce and if possible a minimal demo of the problem via https://plnkr.co or similar (you can use this template as a starting point: http://plnkr.co/edit/tpl:AvJOMERrnz94ekVua0u5).\r\n\r\n\r\n\r\n**What is the expected behavior?**\r\n\r\n\r\n\r\n**What is the motivation / use case for changing the behavior?**\r\nAs per  [RFC 3986 ](https://tools.ietf.org/html/rfc3986), (see Section 2: Characters) may contain any of the following characters: ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~:/?#[]@!$&'()*+,;=. Any other character needs to be encoded with the percent-encoding (%hh). \r\n\r\n\r\n**Please tell us about your environment:**\r\n\r\n* **Angular version:** 2.0.0-rc. and \"@angular/router\": \"3.0.0-beta.2\",\r\n\r\n* **Browser:** [all | Chrome 51  ] \r\n \r\n* **Language:** [all | TypeScript 1.8 | ES6/7 | ES5 | Dart] \r\n"},"comment":{"url":"https://api.github.com/repos/angular/angular/issues/comments/235333600","html_url":"https://github.com/angular/angular/issues/10280#issuecomment-235333600","issue_url":"https://api.github.com/repos/angular/angular/issues/10280","id":235333600,"user":{"login":"felipedrumond","id":17038136,"avatar_url":"https://avatars.githubusercontent.com/u/17038136?v=3","gravatar_id":"","url":"https://api.github.com/users/felipedrumond","html_url":"https://github.com/felipedrumond","followers_url":"https://api.github.com/users/felipedrumond/followers","following_url":"https://api.github.com/users/felipedrumond/following{/other_user}","gists_url":"https://api.github.com/users/felipedrumond/gists{/gist_id}","starred_url":"https://api.github.com/users/felipedrumond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felipedrumond/subscriptions","organizations_url":"https://api.github.com/users/felipedrumond/orgs","repos_url":"https://api.github.com/users/felipedrumond/repos","events_url":"https://api.github.com/users/felipedrumond/events{/privacy}","received_events_url":"https://api.github.com/users/felipedrumond/received_events","type":"User","site_admin":false},"created_at":"2016-07-26T16:58:57Z","updated_at":"2016-07-26T16:58:57Z","body":"What would be the url when using the router to navigate? \r\n\r\nIf I use \r\n<a [routerLink]=\"['/test', { f: '[724,692]' }]\"></a>\r\nthe target url is **/test;f=[724,692]** (fine)\r\n\r\nBut if I navigate using this.router.navigate (code bellow), the target url is **/test?f=[724,692]** (it seems wrong)\r\n\r\n```\r\nvar rote = '/';\r\nvar params = {\r\n            f:  this.criarParametroDeFiltrosDeCategoria(),\r\n            fv: this.criarParametroDeFiltrosValor(),\r\n            o:  this.criarParametroOrdem(),\r\n            pg: this.pagina,\r\n        };\r\n\r\n        var navigationExtras = { queryParams: params };\r\n        this.router.navigate([rote], navigationExtras);\r\n```\r\nReading angular documentation on [https://angular.io/docs/ts/latest/guide/router.html](https://angular.io/docs/ts/latest/guide/router.html), I could find what is the expected target url ."}}
{"actor":{"display_login":"felipedrumond"}}