{"action":"created","comment":{"url":"https://api.github.com/repos/openfisca/legislation-explorer/pulls/comments/119423139","pull_request_review_id":41301584,"id":119423139,"diff_hunk":"@@ -44,6 +44,9 @@ const App = React.createClass({\n       searchResults: findParametersAndVariables(parameters, variables, searchQuery),\n     }\n   },\n+  isCurrentRoute(route) {\n+    return this.props.location.pathname == route","path":"src/components/app.jsx","position":5,"original_position":5,"commit_id":"a634e01bcd98e0f19e0db9d197c7186f1d6ed163","original_commit_id":"a634e01bcd98e0f19e0db9d197c7186f1d6ed163","user":{"login":"cbenz","id":12686,"avatar_url":"https://avatars0.githubusercontent.com/u/12686?v=3","gravatar_id":"","url":"https://api.github.com/users/cbenz","html_url":"https://github.com/cbenz","followers_url":"https://api.github.com/users/cbenz/followers","following_url":"https://api.github.com/users/cbenz/following{/other_user}","gists_url":"https://api.github.com/users/cbenz/gists{/gist_id}","starred_url":"https://api.github.com/users/cbenz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbenz/subscriptions","organizations_url":"https://api.github.com/users/cbenz/orgs","repos_url":"https://api.github.com/users/cbenz/repos","events_url":"https://api.github.com/users/cbenz/events{/privacy}","received_events_url":"https://api.github.com/users/cbenz/received_events","type":"User","site_admin":false},"body":"This works in this case because routes have no param, but I think the idiomatic way to match a path is with [`matchPath`](https://reacttraining.com/react-router/web/api/matchPath) :\r\n\r\n```js\r\nmatchPath(route, this.props.location)\r\n```\r\n\r\nSince I'm not sure could you just try?","created_at":"2017-05-31T17:35:40Z","updated_at":"2017-05-31T17:36:16Z","html_url":"https://github.com/openfisca/legislation-explorer/pull/88#discussion_r119423139","pull_request_url":"https://api.github.com/repos/openfisca/legislation-explorer/pulls/88","_links":{"self":{"href":"https://api.github.com/repos/openfisca/legislation-explorer/pulls/comments/119423139"},"html":{"href":"https://github.com/openfisca/legislation-explorer/pull/88#discussion_r119423139"},"pull_request":{"href":"https://api.github.com/repos/openfisca/legislation-explorer/pulls/88"}}},"pull_request":{"url":"https://api.github.com/repos/openfisca/legislation-explorer/pulls/88","id":123318338,"html_url":"https://github.com/openfisca/legislation-explorer/pull/88","diff_url":"https://github.com/openfisca/legislation-explorer/pull/88.diff","patch_url":"https://github.com/openfisca/legislation-explorer/pull/88.patch","issue_url":"https://api.github.com/repos/openfisca/legislation-explorer/issues/88","number":88,"state":"open","locked":false,"title":"Document the preview API in the legislation explorer","user":{"login":"fpagnoux","id":11834997,"avatar_url":"https://avatars0.githubusercontent.com/u/11834997?v=3","gravatar_id":"","url":"https://api.github.com/users/fpagnoux","html_url":"https://github.com/fpagnoux","followers_url":"https://api.github.com/users/fpagnoux/followers","following_url":"https://api.github.com/users/fpagnoux/following{/other_user}","gists_url":"https://api.github.com/users/fpagnoux/gists{/gist_id}","starred_url":"https://api.github.com/users/fpagnoux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fpagnoux/subscriptions","organizations_url":"https://api.github.com/users/fpagnoux/orgs","repos_url":"https://api.github.com/users/fpagnoux/repos","events_url":"https://api.github.com/users/fpagnoux/events{/privacy}","received_events_url":"https://api.github.com/users/fpagnoux/received_events","type":"User","site_admin":false},"body":"Connected openfisca/openfisca-core#514","created_at":"2017-05-31T16:43:37Z","updated_at":"2017-05-31T17:36:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4205f18f40c6febf67e16d51bc1e2a25cc81fa03","assignee":null,"assignees":[],"requested_reviewers":[{"login":"MattiSG","id":222463,"avatar_url":"https://avatars0.githubusercontent.com/u/222463?v=3","gravatar_id":"","url":"https://api.github.com/users/MattiSG","html_url":"https://github.com/MattiSG","followers_url":"https://api.github.com/users/MattiSG/followers","following_url":"https://api.github.com/users/MattiSG/following{/other_user}","gists_url":"https://api.github.com/users/MattiSG/gists{/gist_id}","starred_url":"https://api.github.com/users/MattiSG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MattiSG/subscriptions","organizations_url":"https://api.github.com/users/MattiSG/orgs","repos_url":"https://api.github.com/users/MattiSG/repos","events_url":"https://api.github.com/users/MattiSG/events{/privacy}","received_events_url":"https://api.github.com/users/MattiSG/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/openfisca/legislation-explorer/pulls/88/commits","review_comments_url":"https://api.github.com/repos/openfisca/legislation-explorer/pulls/88/comments","review_comment_url":"https://api.github.com/repos/openfisca/legislation-explorer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openfisca/legislation-explorer/issues/88/comments","statuses_url":"https://api.github.com/repos/openfisca/legislation-explorer/statuses/a634e01bcd98e0f19e0db9d197c7186f1d6ed163","head":{"label":"openfisca:openAPI_interface","ref":"openAPI_interface","sha":"a634e01bcd98e0f19e0db9d197c7186f1d6ed163","user":{"login":"openfisca","id":1794404,"avatar_url":"https://avatars3.githubusercontent.com/u/1794404?v=3","gravatar_id":"","url":"https://api.github.com/users/openfisca","html_url":"https://github.com/openfisca","followers_url":"https://api.github.com/users/openfisca/followers","following_url":"https://api.github.com/users/openfisca/following{/other_user}","gists_url":"https://api.github.com/users/openfisca/gists{/gist_id}","starred_url":"https://api.github.com/users/openfisca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openfisca/subscriptions","organizations_url":"https://api.github.com/users/openfisca/orgs","repos_url":"https://api.github.com/users/openfisca/repos","events_url":"https://api.github.com/users/openfisca/events{/privacy}","received_events_url":"https://api.github.com/users/openfisca/received_events","type":"Organization","site_admin":false},"repo":{"id":42055626,"name":"legislation-explorer","full_name":"openfisca/legislation-explorer","owner":{"login":"openfisca","id":1794404,"avatar_url":"https://avatars3.githubusercontent.com/u/1794404?v=3","gravatar_id":"","url":"https://api.github.com/users/openfisca","html_url":"https://github.com/openfisca","followers_url":"https://api.github.com/users/openfisca/followers","following_url":"https://api.github.com/users/openfisca/following{/other_user}","gists_url":"https://api.github.com/users/openfisca/gists{/gist_id}","starred_url":"https://api.github.com/users/openfisca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openfisca/subscriptions","organizations_url":"https://api.github.com/users/openfisca/orgs","repos_url":"https://api.github.com/users/openfisca/repos","events_url":"https://api.github.com/users/openfisca/events{/privacy}","received_events_url":"https://api.github.com/users/openfisca/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openfisca/legislation-explorer","description":"Explore legislation formulas and parameters.","fork":false,"url":"https://api.github.com/repos/openfisca/legislation-explorer","forks_url":"https://api.github.com/repos/openfisca/legislation-explorer/forks","keys_url":"https://api.github.com/repos/openfisca/legislation-explorer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openfisca/legislation-explorer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openfisca/legislation-explorer/teams","hooks_url":"https://api.github.com/repos/openfisca/legislation-explorer/hooks","issue_events_url":"https://api.github.com/repos/openfisca/legislation-explorer/issues/events{/number}","events_url":"https://api.github.com/repos/openfisca/legislation-explorer/events","assignees_url":"https://api.github.com/repos/openfisca/legislation-explorer/assignees{/user}","branches_url":"https://api.github.com/repos/openfisca/legislation-explorer/branches{/branch}","tags_url":"https://api.github.com/repos/openfisca/legislation-explorer/tags","blobs_url":"https://api.github.com/repos/openfisca/legislation-explorer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openfisca/legislation-explorer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openfisca/legislation-explorer/git/refs{/sha}","trees_url":"https://api.github.com/repos/openfisca/legislation-explorer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openfisca/legislation-explorer/statuses/{sha}","languages_url":"https://api.github.com/repos/openfisca/legislation-explorer/languages","stargazers_url":"https://api.github.com/repos/openfisca/legislation-explorer/stargazers","contributors_url":"https://api.github.com/repos/openfisca/legislation-explorer/contributors","subscribers_url":"https://api.github.com/repos/openfisca/legislation-explorer/subscribers","subscription_url":"https://api.github.com/repos/openfisca/legislation-explorer/subscription","commits_url":"https://api.github.com/repos/openfisca/legislation-explorer/commits{/sha}","git_commits_url":"https://api.github.com/repos/openfisca/legislation-explorer/git/commits{/sha}","comments_url":"https://api.github.com/repos/openfisca/legislation-explorer/comments{/number}","issue_comment_url":"https://api.github.com/repos/openfisca/legislation-explorer/issues/comments{/number}","contents_url":"https://api.github.com/repos/openfisca/legislation-explorer/contents/{+path}","compare_url":"https://api.github.com/repos/openfisca/legislation-explorer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openfisca/legislation-explorer/merges","archive_url":"https://api.github.com/repos/openfisca/legislation-explorer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openfisca/legislation-explorer/downloads","issues_url":"https://api.github.com/repos/openfisca/legislation-explorer/issues{/number}","pulls_url":"https://api.github.com/repos/openfisca/legislation-explorer/pulls{/number}","milestones_url":"https://api.github.com/repos/openfisca/legislation-explorer/milestones{/number}","notifications_url":"https://api.github.com/repos/openfisca/legislation-explorer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openfisca/legislation-explorer/labels{/name}","releases_url":"https://api.github.com/repos/openfisca/legislation-explorer/releases{/id}","deployments_url":"https://api.github.com/repos/openfisca/legislation-explorer/deployments","created_at":"2015-09-07T13:52:48Z","updated_at":"2017-05-19T08:30:08Z","pushed_at":"2017-05-31T16:57:47Z","git_url":"git://github.com/openfisca/legislation-explorer.git","ssh_url":"git@github.com:openfisca/legislation-explorer.git","clone_url":"https://github.com/openfisca/legislation-explorer.git","svn_url":"https://github.com/openfisca/legislation-explorer","homepage":"https://legislation.openfisca.fr/","size":835,"stargazers_count":8,"watchers_count":8,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":11,"forks":2,"open_issues":11,"watchers":8,"default_branch":"master"}},"base":{"label":"openfisca:master","ref":"master","sha":"23a2fc5ea8759336d3a74619f9dc5f5261e04cdc","user":{"login":"openfisca","id":1794404,"avatar_url":"https://avatars3.githubusercontent.com/u/1794404?v=3","gravatar_id":"","url":"https://api.github.com/users/openfisca","html_url":"https://github.com/openfisca","followers_url":"https://api.github.com/users/openfisca/followers","following_url":"https://api.github.com/users/openfisca/following{/other_user}","gists_url":"https://api.github.com/users/openfisca/gists{/gist_id}","starred_url":"https://api.github.com/users/openfisca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openfisca/subscriptions","organizations_url":"https://api.github.com/users/openfisca/orgs","repos_url":"https://api.github.com/users/openfisca/repos","events_url":"https://api.github.com/users/openfisca/events{/privacy}","received_events_url":"https://api.github.com/users/openfisca/received_events","type":"Organization","site_admin":false},"repo":{"id":42055626,"name":"legislation-explorer","full_name":"openfisca/legislation-explorer","owner":{"login":"openfisca","id":1794404,"avatar_url":"https://avatars3.githubusercontent.com/u/1794404?v=3","gravatar_id":"","url":"https://api.github.com/users/openfisca","html_url":"https://github.com/openfisca","followers_url":"https://api.github.com/users/openfisca/followers","following_url":"https://api.github.com/users/openfisca/following{/other_user}","gists_url":"https://api.github.com/users/openfisca/gists{/gist_id}","starred_url":"https://api.github.com/users/openfisca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openfisca/subscriptions","organizations_url":"https://api.github.com/users/openfisca/orgs","repos_url":"https://api.github.com/users/openfisca/repos","events_url":"https://api.github.com/users/openfisca/events{/privacy}","received_events_url":"https://api.github.com/users/openfisca/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openfisca/legislation-explorer","description":"Explore legislation formulas and parameters.","fork":false,"url":"https://api.github.com/repos/openfisca/legislation-explorer","forks_url":"https://api.github.com/repos/openfisca/legislation-explorer/forks","keys_url":"https://api.github.com/repos/openfisca/legislation-explorer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openfisca/legislation-explorer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openfisca/legislation-explorer/teams","hooks_url":"https://api.github.com/repos/openfisca/legislation-explorer/hooks","issue_events_url":"https://api.github.com/repos/openfisca/legislation-explorer/issues/events{/number}","events_url":"https://api.github.com/repos/openfisca/legislation-explorer/events","assignees_url":"https://api.github.com/repos/openfisca/legislation-explorer/assignees{/user}","branches_url":"https://api.github.com/repos/openfisca/legislation-explorer/branches{/branch}","tags_url":"https://api.github.com/repos/openfisca/legislation-explorer/tags","blobs_url":"https://api.github.com/repos/openfisca/legislation-explorer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openfisca/legislation-explorer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openfisca/legislation-explorer/git/refs{/sha}","trees_url":"https://api.github.com/repos/openfisca/legislation-explorer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openfisca/legislation-explorer/statuses/{sha}","languages_url":"https://api.github.com/repos/openfisca/legislation-explorer/languages","stargazers_url":"https://api.github.com/repos/openfisca/legislation-explorer/stargazers","contributors_url":"https://api.github.com/repos/openfisca/legislation-explorer/contributors","subscribers_url":"https://api.github.com/repos/openfisca/legislation-explorer/subscribers","subscription_url":"https://api.github.com/repos/openfisca/legislation-explorer/subscription","commits_url":"https://api.github.com/repos/openfisca/legislation-explorer/commits{/sha}","git_commits_url":"https://api.github.com/repos/openfisca/legislation-explorer/git/commits{/sha}","comments_url":"https://api.github.com/repos/openfisca/legislation-explorer/comments{/number}","issue_comment_url":"https://api.github.com/repos/openfisca/legislation-explorer/issues/comments{/number}","contents_url":"https://api.github.com/repos/openfisca/legislation-explorer/contents/{+path}","compare_url":"https://api.github.com/repos/openfisca/legislation-explorer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openfisca/legislation-explorer/merges","archive_url":"https://api.github.com/repos/openfisca/legislation-explorer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openfisca/legislation-explorer/downloads","issues_url":"https://api.github.com/repos/openfisca/legislation-explorer/issues{/number}","pulls_url":"https://api.github.com/repos/openfisca/legislation-explorer/pulls{/number}","milestones_url":"https://api.github.com/repos/openfisca/legislation-explorer/milestones{/number}","notifications_url":"https://api.github.com/repos/openfisca/legislation-explorer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openfisca/legislation-explorer/labels{/name}","releases_url":"https://api.github.com/repos/openfisca/legislation-explorer/releases{/id}","deployments_url":"https://api.github.com/repos/openfisca/legislation-explorer/deployments","created_at":"2015-09-07T13:52:48Z","updated_at":"2017-05-19T08:30:08Z","pushed_at":"2017-05-31T16:57:47Z","git_url":"git://github.com/openfisca/legislation-explorer.git","ssh_url":"git@github.com:openfisca/legislation-explorer.git","clone_url":"https://github.com/openfisca/legislation-explorer.git","svn_url":"https://github.com/openfisca/legislation-explorer","homepage":"https://legislation.openfisca.fr/","size":835,"stargazers_count":8,"watchers_count":8,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":11,"forks":2,"open_issues":11,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openfisca/legislation-explorer/pulls/88"},"html":{"href":"https://github.com/openfisca/legislation-explorer/pull/88"},"issue":{"href":"https://api.github.com/repos/openfisca/legislation-explorer/issues/88"},"comments":{"href":"https://api.github.com/repos/openfisca/legislation-explorer/issues/88/comments"},"review_comments":{"href":"https://api.github.com/repos/openfisca/legislation-explorer/pulls/88/comments"},"review_comment":{"href":"https://api.github.com/repos/openfisca/legislation-explorer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openfisca/legislation-explorer/pulls/88/commits"},"statuses":{"href":"https://api.github.com/repos/openfisca/legislation-explorer/statuses/a634e01bcd98e0f19e0db9d197c7186f1d6ed163"}}}}
{"actor":{"display_login":"cbenz"}}