{"action":"opened","issue":{"url":"https://api.github.com/repos/stormpath/stormpath-express-react-example/issues/24","repository_url":"https://api.github.com/repos/stormpath/stormpath-express-react-example","labels_url":"https://api.github.com/repos/stormpath/stormpath-express-react-example/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/stormpath/stormpath-express-react-example/issues/24/comments","events_url":"https://api.github.com/repos/stormpath/stormpath-express-react-example/issues/24/events","html_url":"https://github.com/stormpath/stormpath-express-react-example/issues/24","id":179498206,"number":24,"title":"stormpath-express-react-example/src/html/index.html error? <script src=\"/js/app.js\">","user":{"login":"scheung38","id":1273014,"avatar_url":"https://avatars.githubusercontent.com/u/1273014?v=3","gravatar_id":"","url":"https://api.github.com/users/scheung38","html_url":"https://github.com/scheung38","followers_url":"https://api.github.com/users/scheung38/followers","following_url":"https://api.github.com/users/scheung38/following{/other_user}","gists_url":"https://api.github.com/users/scheung38/gists{/gist_id}","starred_url":"https://api.github.com/users/scheung38/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scheung38/subscriptions","organizations_url":"https://api.github.com/users/scheung38/orgs","repos_url":"https://api.github.com/users/scheung38/repos","events_url":"https://api.github.com/users/scheung38/events{/privacy}","received_events_url":"https://api.github.com/users/scheung38/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-27T13:49:12Z","updated_at":"2016-09-27T13:49:12Z","closed_at":null,"body":"Home Route\r\nNow when we’ve setup most of our routing. Let’s look at a special route called the HomeRoute. This route itself doesn’t do anything. But acts as a “marker”, to indicate where to redirect to when logging in and logging out.\r\n\r\nSo in order to specify where we want to end up when we log out, open up app.js and change the:\r\n\r\n\r\n<Route path='/' component={MasterPage}>\r\n  ...\r\n</Route>\r\n\r\n1\r\n2\r\n3\r\n4\r\n<Route path='/' component={MasterPage}>\r\n  ...\r\n</Route>\r\n \r\nInto:\r\n\r\n\r\n<HomeRoute path='/' component={MasterPage}>\r\n  ...\r\n</HomeRoute>\r\n\r\n1\r\n2\r\n3\r\n4\r\n<HomeRoute path='/' component={MasterPage}>\r\n  ...\r\n</HomeRoute>\r\n \r\nNow when logging out, the Stormpath SDK will know that it should redirect to the ‘/’ path. Now, to specify where to redirect when logging out, change the AuthenticatedRoute that we created in the previous step:\r\n\r\n\r\n<AuthenticatedRoute path='/profile' component={ProfilePage} />\r\n\r\n1\r\n2\r\n<AuthenticatedRoute path='/profile' component={ProfilePage} />\r\n \r\nSo that it looks like:\r\n\r\n\r\n<AuthenticatedRoute>\r\n  <HomeRoute path='/profile' component={ProfilePage} />\r\n</AuthenticatedRoute>\r\n\r\n1\r\n2\r\n3\r\n4\r\n<AuthenticatedRoute>\r\n  <HomeRoute path='/profile' component={ProfilePage} />\r\n</AuthenticatedRoute>\r\n \r\nNotice how the AuthenticatedRoute wraps the HomeRoute. This is used to indicate the authenticated route that we want to redirect to after login.\r\n\r\n\r\nBut code is \r\n\r\n```\r\nReactDOM.render(\r\n  <Router history={browserHistory}>\r\n    <HomeRoute path='/' component={MasterPage}>\r\n      <IndexRoute component={IndexPage} />\r\n      <LoginRoute path='/login' component={LoginPage} />\r\n      <Route path='/verify' component={VerifyEmailPage} />\r\n      <Route path='/register' component={RegisterPage} />\r\n      <Route path='/change' component={ChangePasswordPage} />\r\n      <Route path='/forgot' component={ResetPasswordPage} />\r\n\r\n      <AuthenticatedRoute>\r\n        <Route path=\"/dashboard\" component={DashboardPage}/>\r\n        <Route path='/profile' component={ProfilePage} />\r\n\r\n      </AuthenticatedRoute>\r\n    </HomeRoute>\r\n  </Router>,\r\n  document.getElementById('app-container')\r\n);\r\n```\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"scheung38"}}