{"action":"created","issue":{"url":"https://api.github.com/repos/paulvanbladel/aurelia-auth-sample/issues/15","repository_url":"https://api.github.com/repos/paulvanbladel/aurelia-auth-sample","labels_url":"https://api.github.com/repos/paulvanbladel/aurelia-auth-sample/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/paulvanbladel/aurelia-auth-sample/issues/15/comments","events_url":"https://api.github.com/repos/paulvanbladel/aurelia-auth-sample/issues/15/events","html_url":"https://github.com/paulvanbladel/aurelia-auth-sample/issues/15","id":140504645,"number":15,"title":"Additional pages addeed to routing not functioning properly","user":{"login":"TheoMer","id":15969262,"avatar_url":"https://avatars.githubusercontent.com/u/15969262?v=3","gravatar_id":"","url":"https://api.github.com/users/TheoMer","html_url":"https://github.com/TheoMer","followers_url":"https://api.github.com/users/TheoMer/followers","following_url":"https://api.github.com/users/TheoMer/following{/other_user}","gists_url":"https://api.github.com/users/TheoMer/gists{/gist_id}","starred_url":"https://api.github.com/users/TheoMer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheoMer/subscriptions","organizations_url":"https://api.github.com/users/TheoMer/orgs","repos_url":"https://api.github.com/users/TheoMer/repos","events_url":"https://api.github.com/users/TheoMer/events{/privacy}","received_events_url":"https://api.github.com/users/TheoMer/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-13T16:55:17Z","updated_at":"2016-03-14T16:05:16Z","closed_at":"2016-03-14T09:21:04Z","body":"Hi @paulvanbladel . So, I'm having a bit of an issue adding additional pages to routing. For example adding:\r\n\r\n```\r\napp.router.config.js\r\n\r\n{ route: 'users',         name: 'users',        moduleId: './users',        nav: false, title: 'Github Users' }\r\n\r\nnav-bar.html\r\n\r\n<ul if.bind=\"isAuthenticated\" class=\"nav navbar-nav\">\r\n  <li><a href=\"/#/users\">Github Users</a></li>\r\n</ul>\r\n\r\nusers.js\r\n\r\nimport {inject} from 'aurelia-framework';\r\nimport {HttpClient} from 'aurelia-fetch-client';\r\nimport 'fetch';\r\n\r\n@inject(HttpClient)\r\nexport class Users {\r\n  heading = 'Github Users';\r\n  users = [];\r\n\r\n  constructor(http) {\r\n    http.configure(config => {\r\n      config\r\n        .useStandardConfiguration()\r\n        .withBaseUrl('https://api.github.com/');\r\n    });\r\n\r\n    this.http = http;\r\n  }\r\n\r\n  activate() {\r\n    return this.http.fetch('users')\r\n      .then(response => response.json())\r\n      .then(users => this.users = users);\r\n  }\r\n}\r\n\r\nusers.html\r\n\r\n<template>\r\n  <require from=\"blur-image\"></require>\r\n\r\n  <section class=\"au-animate\">\r\n    <h2>${heading}</h2>\r\n    <div class=\"row au-stagger\">\r\n      <div class=\"col-sm-6 col-md-3 card-container au-animate\" repeat.for=\"user of users\">\r\n        <div class=\"card\">\r\n          <canvas class=\"header-bg\" width=\"250\" height=\"70\" blur-image.bind=\"image\"></canvas>\r\n          <div class=\"avatar\">\r\n            <img src.bind=\"user.avatar_url\" crossorigin ref=\"image\"/>\r\n          </div>\r\n          <div class=\"content\">\r\n            <p class=\"name\">${user.login}</p>\r\n            <p><a target=\"_blank\" class=\"btn btn-default\" href.bind=\"user.html_url\">Contact</a></p>\r\n          </div>\r\n        </div>\r\n      </div>\r\n    </div>\r\n  </section>\r\n</template>\r\n```\r\n\r\nis displayed correctly, once a user has been authenticated. But upon clicking the link (Github Users), the page fails to load, and all the other links in the menu bar seemingly loose their state. They also no longer load their associated pages. You have to actually log out, then back in again, to get the links (minus Github Users) to function properly.\r\n\r\nWhat is the issue here?"},"comment":{"url":"https://api.github.com/repos/paulvanbladel/aurelia-auth-sample/issues/comments/196386212","html_url":"https://github.com/paulvanbladel/aurelia-auth-sample/issues/15#issuecomment-196386212","issue_url":"https://api.github.com/repos/paulvanbladel/aurelia-auth-sample/issues/15","id":196386212,"user":{"login":"TheoMer","id":15969262,"avatar_url":"https://avatars.githubusercontent.com/u/15969262?v=3","gravatar_id":"","url":"https://api.github.com/users/TheoMer","html_url":"https://github.com/TheoMer","followers_url":"https://api.github.com/users/TheoMer/followers","following_url":"https://api.github.com/users/TheoMer/following{/other_user}","gists_url":"https://api.github.com/users/TheoMer/gists{/gist_id}","starred_url":"https://api.github.com/users/TheoMer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheoMer/subscriptions","organizations_url":"https://api.github.com/users/TheoMer/orgs","repos_url":"https://api.github.com/users/TheoMer/repos","events_url":"https://api.github.com/users/TheoMer/events{/privacy}","received_events_url":"https://api.github.com/users/TheoMer/received_events","type":"User","site_admin":false},"created_at":"2016-03-14T16:05:15Z","updated_at":"2016-03-14T16:05:15Z","body":"Hi @paulvanbladel \r\n\r\nThe process works fine now, minus the very odd output display of github users, as seen on the attached image.\r\n\r\n![ood github users output](https://cloud.githubusercontent.com/assets/15969262/13750519/b5d49dd6-e9fd-11e5-86ea-fb6f3b0984f4.jpg)\r\n\r\ngithubHttpClient.js/users.js appears to be the culprit.\r\n\r\nRegards"}}