{"action":"created","issue":{"url":"https://api.github.com/repos/meteor-useraccounts/iron-routing/issues/8","labels_url":"https://api.github.com/repos/meteor-useraccounts/iron-routing/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/meteor-useraccounts/iron-routing/issues/8/comments","events_url":"https://api.github.com/repos/meteor-useraccounts/iron-routing/issues/8/events","html_url":"https://github.com/meteor-useraccounts/iron-routing/pull/8","id":114171918,"number":8,"title":"fix path of undefined error","user":{"login":"trave7er","id":13056774,"avatar_url":"https://avatars.githubusercontent.com/u/13056774?v=3","gravatar_id":"","url":"https://api.github.com/users/trave7er","html_url":"https://github.com/trave7er","followers_url":"https://api.github.com/users/trave7er/followers","following_url":"https://api.github.com/users/trave7er/following{/other_user}","gists_url":"https://api.github.com/users/trave7er/gists{/gist_id}","starred_url":"https://api.github.com/users/trave7er/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trave7er/subscriptions","organizations_url":"https://api.github.com/users/trave7er/orgs","repos_url":"https://api.github.com/users/trave7er/repos","events_url":"https://api.github.com/users/trave7er/events{/privacy}","received_events_url":"https://api.github.com/users/trave7er/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-10-30T00:03:26Z","updated_at":"2015-11-05T19:33:05Z","closed_at":"2015-11-05T07:43:12Z","pull_request":{"url":"https://api.github.com/repos/meteor-useraccounts/iron-routing/pulls/8","html_url":"https://github.com/meteor-useraccounts/iron-routing/pull/8","diff_url":"https://github.com/meteor-useraccounts/iron-routing/pull/8.diff","patch_url":"https://github.com/meteor-useraccounts/iron-routing/pull/8.patch"},"body":"If `Router.current()` is \"notFound\", or some other route that is not handled by iron router, the original implementation will throw an error because: \r\n```javascript\r\n\r\nRouter.current().route is undefined\r\n\r\n```\r\nWe can also use `Router.current()._handled` to determine whether it is defined, but I think it is supposed to be an interval variable, hence `Router.current().route`."},"comment":{"url":"https://api.github.com/repos/meteor-useraccounts/iron-routing/issues/comments/154165956","html_url":"https://github.com/meteor-useraccounts/iron-routing/pull/8#issuecomment-154165956","issue_url":"https://api.github.com/repos/meteor-useraccounts/iron-routing/issues/8","id":154165956,"user":{"login":"trave7er","id":13056774,"avatar_url":"https://avatars.githubusercontent.com/u/13056774?v=3","gravatar_id":"","url":"https://api.github.com/users/trave7er","html_url":"https://github.com/trave7er","followers_url":"https://api.github.com/users/trave7er/followers","following_url":"https://api.github.com/users/trave7er/following{/other_user}","gists_url":"https://api.github.com/users/trave7er/gists{/gist_id}","starred_url":"https://api.github.com/users/trave7er/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trave7er/subscriptions","organizations_url":"https://api.github.com/users/trave7er/orgs","repos_url":"https://api.github.com/users/trave7er/repos","events_url":"https://api.github.com/users/trave7er/events{/privacy}","received_events_url":"https://api.github.com/users/trave7er/received_events","type":"User","site_admin":false},"created_at":"2015-11-05T19:33:05Z","updated_at":"2015-11-05T19:33:05Z","body":"Thanks!"}}