{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular/issues/11275","repository_url":"https://api.github.com/repos/angular/angular","labels_url":"https://api.github.com/repos/angular/angular/issues/11275/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/11275/comments","events_url":"https://api.github.com/repos/angular/angular/issues/11275/events","html_url":"https://github.com/angular/angular/issues/11275","id":174706005,"number":11275,"title":"Query string being is being treated as a path segment for route matching","user":{"login":"pcroc","id":10188546,"avatar_url":"https://avatars.githubusercontent.com/u/10188546?v=3","gravatar_id":"","url":"https://api.github.com/users/pcroc","html_url":"https://github.com/pcroc","followers_url":"https://api.github.com/users/pcroc/followers","following_url":"https://api.github.com/users/pcroc/following{/other_user}","gists_url":"https://api.github.com/users/pcroc/gists{/gist_id}","starred_url":"https://api.github.com/users/pcroc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pcroc/subscriptions","organizations_url":"https://api.github.com/users/pcroc/orgs","repos_url":"https://api.github.com/users/pcroc/repos","events_url":"https://api.github.com/users/pcroc/events{/privacy}","received_events_url":"https://api.github.com/users/pcroc/received_events","type":"User","site_admin":false},"labels":[{"id":375500771,"url":"https://api.github.com/repos/angular/angular/labels/comp:%20router","name":"comp: router","color":"c7def8","default":false},{"id":375496864,"url":"https://api.github.com/repos/angular/angular/labels/freq1:%20low","name":"freq1: low","color":"fbca04","default":false},{"id":375497956,"url":"https://api.github.com/repos/angular/angular/labels/severity2:%20inconvenient","name":"severity2: inconvenient","color":"0052cc","default":false},{"id":130606843,"url":"https://api.github.com/repos/angular/angular/labels/type:%20bug","name":"type: bug","color":"EEEEEE","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-09-02T08:22:36Z","updated_at":"2016-12-18T00:02:28Z","closed_at":null,"body":"**I'm submitting a ...**  (check one with \"x\")\n\n```\n[x] bug report => search github for a similar issue or PR before submitting\n[ ] feature request\n[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question\n```\n\n**Current behavior**\n\nQuery string being is being treated as a path segment for route matching\n\n``` typescript\nRouterModule.forRoot([\n  { path: 'items/all', component: AllItemsComponent }\n  { path: 'items/:id/:alias', component: SingleItemComponent }\n]);\n```\n- Navigating to `/items/all?param=x` shows AllItemsComponent\n- Navigating to `/items/all/?param=x` shows SingleItemComponent\n- Navigating to `/items/all/` redirects to `/items/all`\n\n**Expected/desired behavior**\n- Navigating to `/items/all?param=x` shows AllItemsComponent\n- Navigating to `/items/all/?param=x` shows AllItemsComponent or redirects to `/items/all?param=x`\n\nIt would be nice if we could provide a regex for matching routes, rather than just a simple path. This could be solved in the back-end but that is very annoying to have to do.\n\n**Reproduction of the problem**\n\nSee above - sorry I don't know how to demonstrate this using plnkr since it requires navigating directly to a page.\n\n**What is the expected behavior?**\n\nSee above\n\n**What is the motivation / use case for changing the behavior?**\nIf `/path/` behaves the same as `/path`, then `/path/?query` should behave the same as `/path?query`\n\n**Please tell us about your environment:**\n- **Angular version:** 2.0.0-rc.5\n- **Browser:** all\n- **Language:** TypeScript 1.8\n"},"comment":{"url":"https://api.github.com/repos/angular/angular/issues/comments/267794963","html_url":"https://github.com/angular/angular/issues/11275#issuecomment-267794963","issue_url":"https://api.github.com/repos/angular/angular/issues/11275","id":267794963,"user":{"login":"DzmitryShylovich","id":9335533,"avatar_url":"https://avatars.githubusercontent.com/u/9335533?v=3","gravatar_id":"","url":"https://api.github.com/users/DzmitryShylovich","html_url":"https://github.com/DzmitryShylovich","followers_url":"https://api.github.com/users/DzmitryShylovich/followers","following_url":"https://api.github.com/users/DzmitryShylovich/following{/other_user}","gists_url":"https://api.github.com/users/DzmitryShylovich/gists{/gist_id}","starred_url":"https://api.github.com/users/DzmitryShylovich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DzmitryShylovich/subscriptions","organizations_url":"https://api.github.com/users/DzmitryShylovich/orgs","repos_url":"https://api.github.com/users/DzmitryShylovich/repos","events_url":"https://api.github.com/users/DzmitryShylovich/events{/privacy}","received_events_url":"https://api.github.com/users/DzmitryShylovich/received_events","type":"User","site_admin":false},"created_at":"2016-12-18T00:02:28Z","updated_at":"2016-12-18T00:02:28Z","body":"@pcroc pls add a small repro in plunkr using the latest angular"}}
{"actor":{"display_login":"DzmitryShylovich"}}