{"action":"created","issue":{"url":"https://api.github.com/repos/aurelia/router/issues/347","repository_url":"https://api.github.com/repos/aurelia/router","labels_url":"https://api.github.com/repos/aurelia/router/issues/347/labels{/name}","comments_url":"https://api.github.com/repos/aurelia/router/issues/347/comments","events_url":"https://api.github.com/repos/aurelia/router/issues/347/events","html_url":"https://github.com/aurelia/router/issues/347","id":157933884,"number":347,"title":"route-href does not take into account the href on the route confi","user":{"login":"cosminonea","id":126479,"avatar_url":"https://avatars.githubusercontent.com/u/126479?v=3","gravatar_id":"","url":"https://api.github.com/users/cosminonea","html_url":"https://github.com/cosminonea","followers_url":"https://api.github.com/users/cosminonea/followers","following_url":"https://api.github.com/users/cosminonea/following{/other_user}","gists_url":"https://api.github.com/users/cosminonea/gists{/gist_id}","starred_url":"https://api.github.com/users/cosminonea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cosminonea/subscriptions","organizations_url":"https://api.github.com/users/cosminonea/orgs","repos_url":"https://api.github.com/users/cosminonea/repos","events_url":"https://api.github.com/users/cosminonea/events{/privacy}","received_events_url":"https://api.github.com/users/cosminonea/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-06-01T15:17:25Z","updated_at":"2016-06-01T16:02:51Z","closed_at":null,"body":"I've got a route like this:\r\n\r\n```javascript\r\n      {\r\n        route: 'charts/:name',\r\n        name: 'chart',\r\n        title: 'Charts',\r\n        moduleId: 'common/resources/custom-elements/chart',\r\n        href: '#/some/data/'\r\n      },\r\n```\r\n\r\nNotice the href there. In the view I have something like this:\r\n```html\r\n        <ul>\r\n          <li repeat.for=\"view of dataViews\" class=\"${view.isActive ? 'active' : ''}\">\r\n            <a route-href=\"route.bind: view.type; params.bind: { name: view.name }\">\r\n              <div>\r\n                <h2>${view.title}</h2>\r\n              </div>\r\n              <div class=\"list-snippet\">\r\n                <p>${view.description}</p>\r\n              </div>\r\n            </a>\r\n          </li>\r\n        </ul>\r\n```\r\n\r\nThe dataViews looks like this: \r\n```javascript\r\n{\r\n  description: \"some chart\"\r\n  name: \"some-chart\"\r\n  title: \"Some Chart\"\r\n  type:\"chart\"\r\n}\r\n```\r\n\r\nIf I am on a deep URL like `#/some/data/charts/[chart-name-here]` and refresh the browser all the items in the list have a URL like `#/charts/[chart-name-here]` without the `#/some/data/` prefix. If I navigate to the page via navigation links however, all the links in the list are generated properly.\r\n\r\nIf this a bug or am I missing something?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/aurelia/router/issues/comments/223040988","html_url":"https://github.com/aurelia/router/issues/347#issuecomment-223040988","issue_url":"https://api.github.com/repos/aurelia/router/issues/347","id":223040988,"user":{"login":"cosminonea","id":126479,"avatar_url":"https://avatars.githubusercontent.com/u/126479?v=3","gravatar_id":"","url":"https://api.github.com/users/cosminonea","html_url":"https://github.com/cosminonea","followers_url":"https://api.github.com/users/cosminonea/followers","following_url":"https://api.github.com/users/cosminonea/following{/other_user}","gists_url":"https://api.github.com/users/cosminonea/gists{/gist_id}","starred_url":"https://api.github.com/users/cosminonea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cosminonea/subscriptions","organizations_url":"https://api.github.com/users/cosminonea/orgs","repos_url":"https://api.github.com/users/cosminonea/repos","events_url":"https://api.github.com/users/cosminonea/events{/privacy}","received_events_url":"https://api.github.com/users/cosminonea/received_events","type":"User","site_admin":false},"created_at":"2016-06-01T16:02:51Z","updated_at":"2016-06-01T16:02:51Z","body":"This is a snapshot of my config.js file:\r\n\r\n```javascript\r\n    \"aurelia-router\": \"npm:aurelia-router@1.0.0-beta.1.2.1\",\r\n    \"aurelia-templating-binding\": \"npm:aurelia-templating-binding@1.0.0-beta.1.2.1\",\r\n    \"aurelia-templating-resources\": \"npm:aurelia-templating-resources@1.0.0-beta.1.2.1\",\r\n    \"aurelia-templating-router\": \"npm:aurelia-templating-router@1.0.0-beta.1.2.0\",\r\n```\r\n\r\nNot sure if this is the latest."}}
{"actor":{"display_login":"cosminonea"}}