{"action":"created","issue":{"url":"https://api.github.com/repos/PolymerElements/carbon-route/issues/61","repository_url":"https://api.github.com/repos/PolymerElements/carbon-route","labels_url":"https://api.github.com/repos/PolymerElements/carbon-route/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/PolymerElements/carbon-route/issues/61/comments","events_url":"https://api.github.com/repos/PolymerElements/carbon-route/issues/61/events","html_url":"https://github.com/PolymerElements/carbon-route/issues/61","id":144089829,"number":61,"title":"Suggestion: \"exact\" matching mode","user":{"login":"mbleigh","id":1022,"avatar_url":"https://avatars.githubusercontent.com/u/1022?v=3","gravatar_id":"","url":"https://api.github.com/users/mbleigh","html_url":"https://github.com/mbleigh","followers_url":"https://api.github.com/users/mbleigh/followers","following_url":"https://api.github.com/users/mbleigh/following{/other_user}","gists_url":"https://api.github.com/users/mbleigh/gists{/gist_id}","starred_url":"https://api.github.com/users/mbleigh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbleigh/subscriptions","organizations_url":"https://api.github.com/users/mbleigh/orgs","repos_url":"https://api.github.com/users/mbleigh/repos","events_url":"https://api.github.com/users/mbleigh/events{/privacy}","received_events_url":"https://api.github.com/users/mbleigh/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/PolymerElements/carbon-route/labels/api-feedback","name":"api-feedback","color":"009800"},{"url":"https://api.github.com/repos/PolymerElements/carbon-route/labels/p1%20-%20backlog","name":"p1 - backlog","color":"d1c753"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-28T21:38:05Z","updated_at":"2016-03-29T21:00:11Z","closed_at":null,"body":"It seems like it would be nice to have an `exact` boolean attribute that would exclude tail matching and require that the whole URL matches the remaining path. For instance, if I have a list and show for users I might want something like:\r\n\r\n```html\r\n<carbon-route pattern=\"/users\" active=\"{{listUsers}}\" exact route=\"[[route]]\"></carbon-route>\r\n<carbon-route pattern=\"/users/:id\" active=\"{{showUser}}\" tail=\"{{userParams}}\" route=\"[[route]]\"></carbon-route>\r\n```\r\n\r\nWithout `exact`, there is never a circumstance in which the first route is matched but the second isn't.\r\n\r\nIf I'm misunderstanding the intended way to structure these routes (entirely probable) feel free to show me how I might approach the above in a more as-intended way. :smile:"},"comment":{"url":"https://api.github.com/repos/PolymerElements/carbon-route/issues/comments/203101241","html_url":"https://github.com/PolymerElements/carbon-route/issues/61#issuecomment-203101241","issue_url":"https://api.github.com/repos/PolymerElements/carbon-route/issues/61","id":203101241,"user":{"login":"cdata","id":240083,"avatar_url":"https://avatars.githubusercontent.com/u/240083?v=3","gravatar_id":"","url":"https://api.github.com/users/cdata","html_url":"https://github.com/cdata","followers_url":"https://api.github.com/users/cdata/followers","following_url":"https://api.github.com/users/cdata/following{/other_user}","gists_url":"https://api.github.com/users/cdata/gists{/gist_id}","starred_url":"https://api.github.com/users/cdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdata/subscriptions","organizations_url":"https://api.github.com/users/cdata/orgs","repos_url":"https://api.github.com/users/cdata/repos","events_url":"https://api.github.com/users/cdata/events{/privacy}","received_events_url":"https://api.github.com/users/cdata/received_events","type":"User","site_admin":false},"created_at":"2016-03-29T21:00:11Z","updated_at":"2016-03-29T21:00:11Z","body":"This seems like something that could fall under the umbrella of \"solved by inheritance.\" For example, a user could implement a `carbon-route` derivative that has stricter matching semantics."}}