{"action":"created","comment":{"url":"https://api.github.com/repos/codeforboston/cliff-effects/pulls/comments/211088633","pull_request_review_id":147444125,"id":211088633,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMTA4ODYzMw==","diff_hunk":"@@ -51,50 +52,52 @@ class App extends Component {\n                     { ...props }\n                     snippets={{ ...snippets.header, langCode: snippets.langCode }} />);\n               } } />\n-            <Route\n-              exact\n-              path=\"/\"\n-              component={ (props) => {\n-                return (\n-                  <HomePage\n-                    { ...props }\n-                    snippets={{ ...snippets.homePage, langCode: snippets.langCode }} />);\n-              } } />\n-            <Route\n-              path=\"/about\"\n-              component={ (props) => {\n-                return (\n-                  <AboutPage\n-                    { ...props }\n-                    snippets={{ ...snippets.aboutPage, langCode: snippets.langCode }} />);\n-              } } />\n-            <Route\n-              path=\"/visit/:clientId/:visitId\"\n-              component={ (props) => {\n-                return (\n-                  <VisitPage\n-                    { ...props }\n-                    confirmer = { confirmer }\n-                    snippets  = {{ ...snippets.visitPage, langCode: snippets.langCode }} />);\n-              } } />\n-            <Route\n-              path=\"/visit/load\"\n-              component={ (props) => {\n-                return (\n-                  <VisitPage\n-                    { ...props }\n-                    confirmer = { confirmer }\n-                    snippets  = {{ ...snippets.visitPage, langCode: snippets.langCode }} />);\n-              } } />\n-            <Route\n-              path=\"/load\"\n-              component={ (props) => {\n-                return (\n-                  <VisitPage\n-                    { ...props }\n-                    confirmer = { confirmer }\n-                    snippets  = {{ ...snippets.visitPage, langCode: snippets.langCode }} />);\n-              } } />\n+            <Switch>\n+              <Route\n+                exact\n+                path=\"/\"\n+                component={ (props) => {\n+                  return (\n+                    <HomePage\n+                      { ...props }\n+                      snippets={{ ...snippets.homePage, langCode: snippets.langCode }} />);\n+                } } />\n+              <Route\n+                path=\"/about\"\n+                component={ (props) => {\n+                  return (\n+                    <AboutPage\n+                      { ...props }\n+                      snippets={{ ...snippets.aboutPage, langCode: snippets.langCode }} />);\n+                } } />\n+              <Route\n+                path=\"/visit/:clientId/:visitId\"\n+                component={ (props) => {\n+                  return (\n+                    <VisitPage\n+                      { ...props }\n+                      confirmer = { confirmer }\n+                      snippets  = {{ ...snippets.visitPage, langCode: snippets.langCode }} />);\n+                } } />\n+              <Route\n+                path=\"/visit/load\"","path":"src/App.js","position":84,"original_position":84,"commit_id":"1d0b621daa08e81d26229d7a7572f226fa762f7d","original_commit_id":"1d0b621daa08e81d26229d7a7572f226fa762f7d","user":{"login":"knod","id":4466164,"node_id":"MDQ6VXNlcjQ0NjYxNjQ=","avatar_url":"https://avatars3.githubusercontent.com/u/4466164?v=4","gravatar_id":"","url":"https://api.github.com/users/knod","html_url":"https://github.com/knod","followers_url":"https://api.github.com/users/knod/followers","following_url":"https://api.github.com/users/knod/following{/other_user}","gists_url":"https://api.github.com/users/knod/gists{/gist_id}","starred_url":"https://api.github.com/users/knod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/knod/subscriptions","organizations_url":"https://api.github.com/users/knod/orgs","repos_url":"https://api.github.com/users/knod/repos","events_url":"https://api.github.com/users/knod/events{/privacy}","received_events_url":"https://api.github.com/users/knod/received_events","type":"User","site_admin":false},"body":"Can this ever be reached if it's not put above the previous route?","created_at":"2018-08-19T00:34:55Z","updated_at":"2018-08-19T00:34:56Z","html_url":"https://github.com/codeforboston/cliff-effects/pull/710#discussion_r211088633","pull_request_url":"https://api.github.com/repos/codeforboston/cliff-effects/pulls/710","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/codeforboston/cliff-effects/pulls/comments/211088633"},"html":{"href":"https://github.com/codeforboston/cliff-effects/pull/710#discussion_r211088633"},"pull_request":{"href":"https://api.github.com/repos/codeforboston/cliff-effects/pulls/710"}}},"pull_request":{"url":"https://api.github.com/repos/codeforboston/cliff-effects/pulls/710","id":209318009,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA5MzE4MDA5","html_url":"https://github.com/codeforboston/cliff-effects/pull/710","diff_url":"https://github.com/codeforboston/cliff-effects/pull/710.diff","patch_url":"https://github.com/codeforboston/cliff-effects/pull/710.patch","issue_url":"https://api.github.com/repos/codeforboston/cliff-effects/issues/710","number":710,"state":"open","locked":false,"title":"Use Switch to enforce one page component","user":{"login":"wacii","id":4981770,"node_id":"MDQ6VXNlcjQ5ODE3NzA=","avatar_url":"https://avatars3.githubusercontent.com/u/4981770?v=4","gravatar_id":"","url":"https://api.github.com/users/wacii","html_url":"https://github.com/wacii","followers_url":"https://api.github.com/users/wacii/followers","following_url":"https://api.github.com/users/wacii/following{/other_user}","gists_url":"https://api.github.com/users/wacii/gists{/gist_id}","starred_url":"https://api.github.com/users/wacii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wacii/subscriptions","organizations_url":"https://api.github.com/users/wacii/orgs","repos_url":"https://api.github.com/users/wacii/repos","events_url":"https://api.github.com/users/wacii/events{/privacy}","received_events_url":"https://api.github.com/users/wacii/received_events","type":"User","site_admin":false},"body":"Any Route components that match are rendered, so only accurate paths kept multiple pages from being rendered at the same time. While there are no problems now, using the Switch component guarantees only one page component is rendered.\r\n\r\nForgot to push this. Might have to revisit when the docs change is merged. There should also probably be a fallback page. If not a 404 Not Found sort of page, a redirect to the home page.\r\n\r\nCloses #682","created_at":"2018-08-18T15:57:49Z","updated_at":"2018-08-19T00:34:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"663743b374cf5b69c9faa590c6b28639e949212a","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/codeforboston/cliff-effects/pulls/710/commits","review_comments_url":"https://api.github.com/repos/codeforboston/cliff-effects/pulls/710/comments","review_comment_url":"https://api.github.com/repos/codeforboston/cliff-effects/pulls/comments{/number}","comments_url":"https://api.github.com/repos/codeforboston/cliff-effects/issues/710/comments","statuses_url":"https://api.github.com/repos/codeforboston/cliff-effects/statuses/1d0b621daa08e81d26229d7a7572f226fa762f7d","head":{"label":"wacii:use-switch","ref":"use-switch","sha":"1d0b621daa08e81d26229d7a7572f226fa762f7d","user":{"login":"wacii","id":4981770,"node_id":"MDQ6VXNlcjQ5ODE3NzA=","avatar_url":"https://avatars3.githubusercontent.com/u/4981770?v=4","gravatar_id":"","url":"https://api.github.com/users/wacii","html_url":"https://github.com/wacii","followers_url":"https://api.github.com/users/wacii/followers","following_url":"https://api.github.com/users/wacii/following{/other_user}","gists_url":"https://api.github.com/users/wacii/gists{/gist_id}","starred_url":"https://api.github.com/users/wacii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wacii/subscriptions","organizations_url":"https://api.github.com/users/wacii/orgs","repos_url":"https://api.github.com/users/wacii/repos","events_url":"https://api.github.com/users/wacii/events{/privacy}","received_events_url":"https://api.github.com/users/wacii/received_events","type":"User","site_admin":false},"repo":{"id":112648823,"node_id":"MDEwOlJlcG9zaXRvcnkxMTI2NDg4MjM=","name":"cliff-effects","full_name":"wacii/cliff-effects","owner":{"login":"wacii","id":4981770,"node_id":"MDQ6VXNlcjQ5ODE3NzA=","avatar_url":"https://avatars3.githubusercontent.com/u/4981770?v=4","gravatar_id":"","url":"https://api.github.com/users/wacii","html_url":"https://github.com/wacii","followers_url":"https://api.github.com/users/wacii/followers","following_url":"https://api.github.com/users/wacii/following{/other_user}","gists_url":"https://api.github.com/users/wacii/gists{/gist_id}","starred_url":"https://api.github.com/users/wacii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wacii/subscriptions","organizations_url":"https://api.github.com/users/wacii/orgs","repos_url":"https://api.github.com/users/wacii/repos","events_url":"https://api.github.com/users/wacii/events{/privacy}","received_events_url":"https://api.github.com/users/wacii/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wacii/cliff-effects","description":"Cliff effects guidance prototype","fork":true,"url":"https://api.github.com/repos/wacii/cliff-effects","forks_url":"https://api.github.com/repos/wacii/cliff-effects/forks","keys_url":"https://api.github.com/repos/wacii/cliff-effects/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wacii/cliff-effects/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wacii/cliff-effects/teams","hooks_url":"https://api.github.com/repos/wacii/cliff-effects/hooks","issue_events_url":"https://api.github.com/repos/wacii/cliff-effects/issues/events{/number}","events_url":"https://api.github.com/repos/wacii/cliff-effects/events","assignees_url":"https://api.github.com/repos/wacii/cliff-effects/assignees{/user}","branches_url":"https://api.github.com/repos/wacii/cliff-effects/branches{/branch}","tags_url":"https://api.github.com/repos/wacii/cliff-effects/tags","blobs_url":"https://api.github.com/repos/wacii/cliff-effects/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wacii/cliff-effects/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wacii/cliff-effects/git/refs{/sha}","trees_url":"https://api.github.com/repos/wacii/cliff-effects/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wacii/cliff-effects/statuses/{sha}","languages_url":"https://api.github.com/repos/wacii/cliff-effects/languages","stargazers_url":"https://api.github.com/repos/wacii/cliff-effects/stargazers","contributors_url":"https://api.github.com/repos/wacii/cliff-effects/contributors","subscribers_url":"https://api.github.com/repos/wacii/cliff-effects/subscribers","subscription_url":"https://api.github.com/repos/wacii/cliff-effects/subscription","commits_url":"https://api.github.com/repos/wacii/cliff-effects/commits{/sha}","git_commits_url":"https://api.github.com/repos/wacii/cliff-effects/git/commits{/sha}","comments_url":"https://api.github.com/repos/wacii/cliff-effects/comments{/number}","issue_comment_url":"https://api.github.com/repos/wacii/cliff-effects/issues/comments{/number}","contents_url":"https://api.github.com/repos/wacii/cliff-effects/contents/{+path}","compare_url":"https://api.github.com/repos/wacii/cliff-effects/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wacii/cliff-effects/merges","archive_url":"https://api.github.com/repos/wacii/cliff-effects/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wacii/cliff-effects/downloads","issues_url":"https://api.github.com/repos/wacii/cliff-effects/issues{/number}","pulls_url":"https://api.github.com/repos/wacii/cliff-effects/pulls{/number}","milestones_url":"https://api.github.com/repos/wacii/cliff-effects/milestones{/number}","notifications_url":"https://api.github.com/repos/wacii/cliff-effects/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wacii/cliff-effects/labels{/name}","releases_url":"https://api.github.com/repos/wacii/cliff-effects/releases{/id}","deployments_url":"https://api.github.com/repos/wacii/cliff-effects/deployments","created_at":"2017-11-30T18:59:22Z","updated_at":"2018-08-08T17:18:48Z","pushed_at":"2018-08-08T17:18:46Z","git_url":"git://github.com/wacii/cliff-effects.git","ssh_url":"git@github.com:wacii/cliff-effects.git","clone_url":"https://github.com/wacii/cliff-effects.git","svn_url":"https://github.com/wacii/cliff-effects","homepage":"https://codeforboston.github.io/cliff-effects/#/","size":24775,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"dev"}},"base":{"label":"codeforboston:dev","ref":"dev","sha":"f0efcf8792e3921182d88056c3d025f925277cc1","user":{"login":"codeforboston","id":2533182,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1MzMxODI=","avatar_url":"https://avatars1.githubusercontent.com/u/2533182?v=4","gravatar_id":"","url":"https://api.github.com/users/codeforboston","html_url":"https://github.com/codeforboston","followers_url":"https://api.github.com/users/codeforboston/followers","following_url":"https://api.github.com/users/codeforboston/following{/other_user}","gists_url":"https://api.github.com/users/codeforboston/gists{/gist_id}","starred_url":"https://api.github.com/users/codeforboston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeforboston/subscriptions","organizations_url":"https://api.github.com/users/codeforboston/orgs","repos_url":"https://api.github.com/users/codeforboston/repos","events_url":"https://api.github.com/users/codeforboston/events{/privacy}","received_events_url":"https://api.github.com/users/codeforboston/received_events","type":"Organization","site_admin":false},"repo":{"id":101820184,"node_id":"MDEwOlJlcG9zaXRvcnkxMDE4MjAxODQ=","name":"cliff-effects","full_name":"codeforboston/cliff-effects","owner":{"login":"codeforboston","id":2533182,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1MzMxODI=","avatar_url":"https://avatars1.githubusercontent.com/u/2533182?v=4","gravatar_id":"","url":"https://api.github.com/users/codeforboston","html_url":"https://github.com/codeforboston","followers_url":"https://api.github.com/users/codeforboston/followers","following_url":"https://api.github.com/users/codeforboston/following{/other_user}","gists_url":"https://api.github.com/users/codeforboston/gists{/gist_id}","starred_url":"https://api.github.com/users/codeforboston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeforboston/subscriptions","organizations_url":"https://api.github.com/users/codeforboston/orgs","repos_url":"https://api.github.com/users/codeforboston/repos","events_url":"https://api.github.com/users/codeforboston/events{/privacy}","received_events_url":"https://api.github.com/users/codeforboston/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codeforboston/cliff-effects","description":"Cliff effects guidance prototype","fork":false,"url":"https://api.github.com/repos/codeforboston/cliff-effects","forks_url":"https://api.github.com/repos/codeforboston/cliff-effects/forks","keys_url":"https://api.github.com/repos/codeforboston/cliff-effects/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codeforboston/cliff-effects/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codeforboston/cliff-effects/teams","hooks_url":"https://api.github.com/repos/codeforboston/cliff-effects/hooks","issue_events_url":"https://api.github.com/repos/codeforboston/cliff-effects/issues/events{/number}","events_url":"https://api.github.com/repos/codeforboston/cliff-effects/events","assignees_url":"https://api.github.com/repos/codeforboston/cliff-effects/assignees{/user}","branches_url":"https://api.github.com/repos/codeforboston/cliff-effects/branches{/branch}","tags_url":"https://api.github.com/repos/codeforboston/cliff-effects/tags","blobs_url":"https://api.github.com/repos/codeforboston/cliff-effects/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codeforboston/cliff-effects/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codeforboston/cliff-effects/git/refs{/sha}","trees_url":"https://api.github.com/repos/codeforboston/cliff-effects/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codeforboston/cliff-effects/statuses/{sha}","languages_url":"https://api.github.com/repos/codeforboston/cliff-effects/languages","stargazers_url":"https://api.github.com/repos/codeforboston/cliff-effects/stargazers","contributors_url":"https://api.github.com/repos/codeforboston/cliff-effects/contributors","subscribers_url":"https://api.github.com/repos/codeforboston/cliff-effects/subscribers","subscription_url":"https://api.github.com/repos/codeforboston/cliff-effects/subscription","commits_url":"https://api.github.com/repos/codeforboston/cliff-effects/commits{/sha}","git_commits_url":"https://api.github.com/repos/codeforboston/cliff-effects/git/commits{/sha}","comments_url":"https://api.github.com/repos/codeforboston/cliff-effects/comments{/number}","issue_comment_url":"https://api.github.com/repos/codeforboston/cliff-effects/issues/comments{/number}","contents_url":"https://api.github.com/repos/codeforboston/cliff-effects/contents/{+path}","compare_url":"https://api.github.com/repos/codeforboston/cliff-effects/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codeforboston/cliff-effects/merges","archive_url":"https://api.github.com/repos/codeforboston/cliff-effects/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codeforboston/cliff-effects/downloads","issues_url":"https://api.github.com/repos/codeforboston/cliff-effects/issues{/number}","pulls_url":"https://api.github.com/repos/codeforboston/cliff-effects/pulls{/number}","milestones_url":"https://api.github.com/repos/codeforboston/cliff-effects/milestones{/number}","notifications_url":"https://api.github.com/repos/codeforboston/cliff-effects/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codeforboston/cliff-effects/labels{/name}","releases_url":"https://api.github.com/repos/codeforboston/cliff-effects/releases{/id}","deployments_url":"https://api.github.com/repos/codeforboston/cliff-effects/deployments","created_at":"2017-08-30T00:41:15Z","updated_at":"2018-08-19T00:15:47Z","pushed_at":"2018-08-19T00:15:44Z","git_url":"git://github.com/codeforboston/cliff-effects.git","ssh_url":"git@github.com:codeforboston/cliff-effects.git","clone_url":"https://github.com/codeforboston/cliff-effects.git","svn_url":"https://github.com/codeforboston/cliff-effects","homepage":"https://codeforboston.github.io/cliff-effects/#/","size":34309,"stargazers_count":23,"watchers_count":23,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":59,"mirror_url":null,"archived":false,"open_issues_count":57,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":59,"open_issues":57,"watchers":23,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/codeforboston/cliff-effects/pulls/710"},"html":{"href":"https://github.com/codeforboston/cliff-effects/pull/710"},"issue":{"href":"https://api.github.com/repos/codeforboston/cliff-effects/issues/710"},"comments":{"href":"https://api.github.com/repos/codeforboston/cliff-effects/issues/710/comments"},"review_comments":{"href":"https://api.github.com/repos/codeforboston/cliff-effects/pulls/710/comments"},"review_comment":{"href":"https://api.github.com/repos/codeforboston/cliff-effects/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/codeforboston/cliff-effects/pulls/710/commits"},"statuses":{"href":"https://api.github.com/repos/codeforboston/cliff-effects/statuses/1d0b621daa08e81d26229d7a7572f226fa762f7d"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"knod"}}