{"action":"opened","issue":{"url":"https://api.github.com/repos/meteor-useraccounts/core/issues/563","labels_url":"https://api.github.com/repos/meteor-useraccounts/core/issues/563/labels{/name}","comments_url":"https://api.github.com/repos/meteor-useraccounts/core/issues/563/comments","events_url":"https://api.github.com/repos/meteor-useraccounts/core/issues/563/events","html_url":"https://github.com/meteor-useraccounts/core/issues/563","id":112487323,"number":563,"title":"AccountsTemplates.logout() and iron-router's this.next()","user":{"login":"kctang","id":1495212,"avatar_url":"https://avatars.githubusercontent.com/u/1495212?v=3","gravatar_id":"","url":"https://api.github.com/users/kctang","html_url":"https://github.com/kctang","followers_url":"https://api.github.com/users/kctang/followers","following_url":"https://api.github.com/users/kctang/following{/other_user}","gists_url":"https://api.github.com/users/kctang/gists{/gist_id}","starred_url":"https://api.github.com/users/kctang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kctang/subscriptions","organizations_url":"https://api.github.com/users/kctang/orgs","repos_url":"https://api.github.com/users/kctang/repos","events_url":"https://api.github.com/users/kctang/events{/privacy}","received_events_url":"https://api.github.com/users/kctang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-21T00:27:56Z","updated_at":"2015-10-21T00:27:56Z","closed_at":null,"body":"Hi! I am able to get a /sign-out route to work and redirect on logout using:\r\n\r\n    Router.route('/sign-out', {\r\n        name: 'signOut',\r\n        onBeforeAction: function () {\r\n            AccountsTemplates.logout(); // onLogoutHook is configured to redirect to home\r\n            this.next();\r\n        }\r\n    });\r\n\r\nHowever, with the code above, I get a brief display of this message before redirection to home happens:\r\n\r\n    Couldn't find a template named \"SignOut\" or \"signOut\". Are you sure you defined it?\r\n\r\nI can think of:\r\n\r\n- creating the \"signOut\" template but that is a bit pointless. \r\n- or disable this.next() but iron-router says \"Route dispatch never rendered. Did you forget to call this.next() in an onBeforeAction?\"\r\n\r\nWhat is the best solution to this if I need a route to perform log out?"}}