{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular/issues/4895","labels_url":"https://api.github.com/repos/angular/angular/issues/4895/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/4895/comments","events_url":"https://api.github.com/repos/angular/angular/issues/4895/events","html_url":"https://github.com/angular/angular/issues/4895","id":113210873,"number":4895,"title":"[Alpha 44][Router] Parenthesis in urls","user":{"login":"ocombe","id":265378,"avatar_url":"https://avatars.githubusercontent.com/u/265378?v=3","gravatar_id":"","url":"https://api.github.com/users/ocombe","html_url":"https://github.com/ocombe","followers_url":"https://api.github.com/users/ocombe/followers","following_url":"https://api.github.com/users/ocombe/following{/other_user}","gists_url":"https://api.github.com/users/ocombe/gists{/gist_id}","starred_url":"https://api.github.com/users/ocombe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ocombe/subscriptions","organizations_url":"https://api.github.com/users/ocombe/orgs","repos_url":"https://api.github.com/users/ocombe/repos","events_url":"https://api.github.com/users/ocombe/events{/privacy}","received_events_url":"https://api.github.com/users/ocombe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-25T06:56:56Z","updated_at":"2015-10-25T11:48:26Z","closed_at":null,"body":"I have a problem with parenthesis characters:\r\n`this.router.navigate(['./Show', {id: \"The Player (2015)\"]);`\r\n---> works on first try\r\n---> doesn't work on page refresh returns \"The Player \" (instead of \"The Player (2015)\")\r\n\r\nAnd when I try to URI encode them:\r\n`this.router.navigate(['./Show', {id: encodeURIComponent(\"The Player (2015)\")]);`\r\n---> doesn't works on first try (route params return \"The%20Player%20\")\r\n---> doesn't work on page refresh returns \"The%20Player%20\" (instead of \"The%20Player%20(2015)\")\r\n\r\nI guess that the problem is that the router will think that those parenthesis are auxiliary routes when you refresh the app. The router should probably encode those to something else and decode them for the params.\r\nI'll make that myself for now, but it would probably be a good idea to have this implemented within the router himself for all \"special\" characters that it might use. I shouldn't be limited in any way regarding the characters that I put into the url."},"comment":{"url":"https://api.github.com/repos/angular/angular/issues/comments/150915949","html_url":"https://github.com/angular/angular/issues/4895#issuecomment-150915949","issue_url":"https://api.github.com/repos/angular/angular/issues/4895","id":150915949,"user":{"login":"ocombe","id":265378,"avatar_url":"https://avatars.githubusercontent.com/u/265378?v=3","gravatar_id":"","url":"https://api.github.com/users/ocombe","html_url":"https://github.com/ocombe","followers_url":"https://api.github.com/users/ocombe/followers","following_url":"https://api.github.com/users/ocombe/following{/other_user}","gists_url":"https://api.github.com/users/ocombe/gists{/gist_id}","starred_url":"https://api.github.com/users/ocombe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ocombe/subscriptions","organizations_url":"https://api.github.com/users/ocombe/orgs","repos_url":"https://api.github.com/users/ocombe/repos","events_url":"https://api.github.com/users/ocombe/events{/privacy}","received_events_url":"https://api.github.com/users/ocombe/received_events","type":"User","site_admin":false},"created_at":"2015-10-25T11:48:26Z","updated_at":"2015-10-25T11:48:26Z","body":"Yes I know that it doesn't encode parenthesis, but I tried it before discovering auxiliary routes, which seems to be the problem here. Because it works until I refresh the page and then the router gets fooled when analyzing the url :-/"}}