{"action":"created","comment":{"url":"https://api.github.com/repos/RESTful-Drupal/restful/pulls/comments/45810410","id":45810410,"diff_hunk":"@@ -63,7 +63,17 @@ function restful_menu() {\n       $items[$base_path . '/' . $plugin_definition['resource']] = $item;\n     }\n     else {\n-      $path = implode('/', array($base_path, $plugin_definition['menuItem']));","path":"restful.module","position":4,"original_position":4,"commit_id":"97003380a10ac5f448287196aa0abf9aa065838a","original_commit_id":"97003380a10ac5f448287196aa0abf9aa065838a","user":{"login":"e0ipso","id":1140906,"avatar_url":"https://avatars.githubusercontent.com/u/1140906?v=3","gravatar_id":"","url":"https://api.github.com/users/e0ipso","html_url":"https://github.com/e0ipso","followers_url":"https://api.github.com/users/e0ipso/followers","following_url":"https://api.github.com/users/e0ipso/following{/other_user}","gists_url":"https://api.github.com/users/e0ipso/gists{/gist_id}","starred_url":"https://api.github.com/users/e0ipso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/e0ipso/subscriptions","organizations_url":"https://api.github.com/users/e0ipso/orgs","repos_url":"https://api.github.com/users/e0ipso/repos","events_url":"https://api.github.com/users/e0ipso/events{/privacy}","received_events_url":"https://api.github.com/users/e0ipso/received_events","type":"User","site_admin":false},"body":"How about:\r\n\r\n```php\r\n$path = implode('/', array($base_path, $plugin_definition['menuItem']));\r\n// Remove trailing slashes that can lead to 404 errors.\r\n$path = rtrim($path, '/');\r\n```\r\n","created_at":"2015-11-24T23:27:30Z","updated_at":"2015-11-24T23:27:30Z","html_url":"https://github.com/RESTful-Drupal/restful/pull/758#discussion_r45810410","pull_request_url":"https://api.github.com/repos/RESTful-Drupal/restful/pulls/758","_links":{"self":{"href":"https://api.github.com/repos/RESTful-Drupal/restful/pulls/comments/45810410"},"html":{"href":"https://github.com/RESTful-Drupal/restful/pull/758#discussion_r45810410"},"pull_request":{"href":"https://api.github.com/repos/RESTful-Drupal/restful/pulls/758"}}},"pull_request":{"url":"https://api.github.com/repos/RESTful-Drupal/restful/pulls/758","id":51729890,"html_url":"https://github.com/RESTful-Drupal/restful/pull/758","diff_url":"https://github.com/RESTful-Drupal/restful/pull/758.diff","patch_url":"https://github.com/RESTful-Drupal/restful/pull/758.patch","issue_url":"https://api.github.com/repos/RESTful-Drupal/restful/issues/758","number":758,"state":"open","locked":false,"title":"Fixing plugins exposing for 2.x.","user":{"login":"RoySegall","id":1222368,"avatar_url":"https://avatars.githubusercontent.com/u/1222368?v=3","gravatar_id":"","url":"https://api.github.com/users/RoySegall","html_url":"https://github.com/RoySegall","followers_url":"https://api.github.com/users/RoySegall/followers","following_url":"https://api.github.com/users/RoySegall/following{/other_user}","gists_url":"https://api.github.com/users/RoySegall/gists{/gist_id}","starred_url":"https://api.github.com/users/RoySegall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RoySegall/subscriptions","organizations_url":"https://api.github.com/users/RoySegall/orgs","repos_url":"https://api.github.com/users/RoySegall/repos","events_url":"https://api.github.com/users/RoySegall/events{/privacy}","received_events_url":"https://api.github.com/users/RoySegall/received_events","type":"User","site_admin":false},"body":"#757 ","created_at":"2015-11-24T22:58:28Z","updated_at":"2015-11-24T23:27:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"499c5b119fbfb376562a19bc6868193e4fa9f819","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/RESTful-Drupal/restful/pulls/758/commits","review_comments_url":"https://api.github.com/repos/RESTful-Drupal/restful/pulls/758/comments","review_comment_url":"https://api.github.com/repos/RESTful-Drupal/restful/pulls/comments{/number}","comments_url":"https://api.github.com/repos/RESTful-Drupal/restful/issues/758/comments","statuses_url":"https://api.github.com/repos/RESTful-Drupal/restful/statuses/97003380a10ac5f448287196aa0abf9aa065838a","head":{"label":"RoySegall:757","ref":"757","sha":"97003380a10ac5f448287196aa0abf9aa065838a","user":{"login":"RoySegall","id":1222368,"avatar_url":"https://avatars.githubusercontent.com/u/1222368?v=3","gravatar_id":"","url":"https://api.github.com/users/RoySegall","html_url":"https://github.com/RoySegall","followers_url":"https://api.github.com/users/RoySegall/followers","following_url":"https://api.github.com/users/RoySegall/following{/other_user}","gists_url":"https://api.github.com/users/RoySegall/gists{/gist_id}","starred_url":"https://api.github.com/users/RoySegall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RoySegall/subscriptions","organizations_url":"https://api.github.com/users/RoySegall/orgs","repos_url":"https://api.github.com/users/RoySegall/repos","events_url":"https://api.github.com/users/RoySegall/events{/privacy}","received_events_url":"https://api.github.com/users/RoySegall/received_events","type":"User","site_admin":false},"repo":{"id":25148481,"name":"restful","full_name":"RoySegall/restful","owner":{"login":"RoySegall","id":1222368,"avatar_url":"https://avatars.githubusercontent.com/u/1222368?v=3","gravatar_id":"","url":"https://api.github.com/users/RoySegall","html_url":"https://github.com/RoySegall","followers_url":"https://api.github.com/users/RoySegall/followers","following_url":"https://api.github.com/users/RoySegall/following{/other_user}","gists_url":"https://api.github.com/users/RoySegall/gists{/gist_id}","starred_url":"https://api.github.com/users/RoySegall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RoySegall/subscriptions","organizations_url":"https://api.github.com/users/RoySegall/orgs","repos_url":"https://api.github.com/users/RoySegall/repos","events_url":"https://api.github.com/users/RoySegall/events{/privacy}","received_events_url":"https://api.github.com/users/RoySegall/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/RoySegall/restful","description":"RESTful best practices for Drupal","fork":true,"url":"https://api.github.com/repos/RoySegall/restful","forks_url":"https://api.github.com/repos/RoySegall/restful/forks","keys_url":"https://api.github.com/repos/RoySegall/restful/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RoySegall/restful/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RoySegall/restful/teams","hooks_url":"https://api.github.com/repos/RoySegall/restful/hooks","issue_events_url":"https://api.github.com/repos/RoySegall/restful/issues/events{/number}","events_url":"https://api.github.com/repos/RoySegall/restful/events","assignees_url":"https://api.github.com/repos/RoySegall/restful/assignees{/user}","branches_url":"https://api.github.com/repos/RoySegall/restful/branches{/branch}","tags_url":"https://api.github.com/repos/RoySegall/restful/tags","blobs_url":"https://api.github.com/repos/RoySegall/restful/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RoySegall/restful/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RoySegall/restful/git/refs{/sha}","trees_url":"https://api.github.com/repos/RoySegall/restful/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RoySegall/restful/statuses/{sha}","languages_url":"https://api.github.com/repos/RoySegall/restful/languages","stargazers_url":"https://api.github.com/repos/RoySegall/restful/stargazers","contributors_url":"https://api.github.com/repos/RoySegall/restful/contributors","subscribers_url":"https://api.github.com/repos/RoySegall/restful/subscribers","subscription_url":"https://api.github.com/repos/RoySegall/restful/subscription","commits_url":"https://api.github.com/repos/RoySegall/restful/commits{/sha}","git_commits_url":"https://api.github.com/repos/RoySegall/restful/git/commits{/sha}","comments_url":"https://api.github.com/repos/RoySegall/restful/comments{/number}","issue_comment_url":"https://api.github.com/repos/RoySegall/restful/issues/comments{/number}","contents_url":"https://api.github.com/repos/RoySegall/restful/contents/{+path}","compare_url":"https://api.github.com/repos/RoySegall/restful/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RoySegall/restful/merges","archive_url":"https://api.github.com/repos/RoySegall/restful/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RoySegall/restful/downloads","issues_url":"https://api.github.com/repos/RoySegall/restful/issues{/number}","pulls_url":"https://api.github.com/repos/RoySegall/restful/pulls{/number}","milestones_url":"https://api.github.com/repos/RoySegall/restful/milestones{/number}","notifications_url":"https://api.github.com/repos/RoySegall/restful/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RoySegall/restful/labels{/name}","releases_url":"https://api.github.com/repos/RoySegall/restful/releases{/id}","created_at":"2014-10-13T07:36:38Z","updated_at":"2015-03-23T12:20:27Z","pushed_at":"2015-11-24T22:58:11Z","git_url":"git://github.com/RoySegall/restful.git","ssh_url":"git@github.com:RoySegall/restful.git","clone_url":"https://github.com/RoySegall/restful.git","svn_url":"https://github.com/RoySegall/restful","homepage":"","size":2424,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"7.x-1.x"}},"base":{"label":"RESTful-Drupal:7.x-2.x","ref":"7.x-2.x","sha":"b49b024ed181245ba651f2d60f01c720ff8cbb8b","user":{"login":"RESTful-Drupal","id":10175793,"avatar_url":"https://avatars.githubusercontent.com/u/10175793?v=3","gravatar_id":"","url":"https://api.github.com/users/RESTful-Drupal","html_url":"https://github.com/RESTful-Drupal","followers_url":"https://api.github.com/users/RESTful-Drupal/followers","following_url":"https://api.github.com/users/RESTful-Drupal/following{/other_user}","gists_url":"https://api.github.com/users/RESTful-Drupal/gists{/gist_id}","starred_url":"https://api.github.com/users/RESTful-Drupal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RESTful-Drupal/subscriptions","organizations_url":"https://api.github.com/users/RESTful-Drupal/orgs","repos_url":"https://api.github.com/users/RESTful-Drupal/repos","events_url":"https://api.github.com/users/RESTful-Drupal/events{/privacy}","received_events_url":"https://api.github.com/users/RESTful-Drupal/received_events","type":"Organization","site_admin":false},"repo":{"id":17918315,"name":"restful","full_name":"RESTful-Drupal/restful","owner":{"login":"RESTful-Drupal","id":10175793,"avatar_url":"https://avatars.githubusercontent.com/u/10175793?v=3","gravatar_id":"","url":"https://api.github.com/users/RESTful-Drupal","html_url":"https://github.com/RESTful-Drupal","followers_url":"https://api.github.com/users/RESTful-Drupal/followers","following_url":"https://api.github.com/users/RESTful-Drupal/following{/other_user}","gists_url":"https://api.github.com/users/RESTful-Drupal/gists{/gist_id}","starred_url":"https://api.github.com/users/RESTful-Drupal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RESTful-Drupal/subscriptions","organizations_url":"https://api.github.com/users/RESTful-Drupal/orgs","repos_url":"https://api.github.com/users/RESTful-Drupal/repos","events_url":"https://api.github.com/users/RESTful-Drupal/events{/privacy}","received_events_url":"https://api.github.com/users/RESTful-Drupal/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/RESTful-Drupal/restful","description":"RESTful best practices for Drupal","fork":false,"url":"https://api.github.com/repos/RESTful-Drupal/restful","forks_url":"https://api.github.com/repos/RESTful-Drupal/restful/forks","keys_url":"https://api.github.com/repos/RESTful-Drupal/restful/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RESTful-Drupal/restful/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RESTful-Drupal/restful/teams","hooks_url":"https://api.github.com/repos/RESTful-Drupal/restful/hooks","issue_events_url":"https://api.github.com/repos/RESTful-Drupal/restful/issues/events{/number}","events_url":"https://api.github.com/repos/RESTful-Drupal/restful/events","assignees_url":"https://api.github.com/repos/RESTful-Drupal/restful/assignees{/user}","branches_url":"https://api.github.com/repos/RESTful-Drupal/restful/branches{/branch}","tags_url":"https://api.github.com/repos/RESTful-Drupal/restful/tags","blobs_url":"https://api.github.com/repos/RESTful-Drupal/restful/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RESTful-Drupal/restful/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RESTful-Drupal/restful/git/refs{/sha}","trees_url":"https://api.github.com/repos/RESTful-Drupal/restful/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RESTful-Drupal/restful/statuses/{sha}","languages_url":"https://api.github.com/repos/RESTful-Drupal/restful/languages","stargazers_url":"https://api.github.com/repos/RESTful-Drupal/restful/stargazers","contributors_url":"https://api.github.com/repos/RESTful-Drupal/restful/contributors","subscribers_url":"https://api.github.com/repos/RESTful-Drupal/restful/subscribers","subscription_url":"https://api.github.com/repos/RESTful-Drupal/restful/subscription","commits_url":"https://api.github.com/repos/RESTful-Drupal/restful/commits{/sha}","git_commits_url":"https://api.github.com/repos/RESTful-Drupal/restful/git/commits{/sha}","comments_url":"https://api.github.com/repos/RESTful-Drupal/restful/comments{/number}","issue_comment_url":"https://api.github.com/repos/RESTful-Drupal/restful/issues/comments{/number}","contents_url":"https://api.github.com/repos/RESTful-Drupal/restful/contents/{+path}","compare_url":"https://api.github.com/repos/RESTful-Drupal/restful/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RESTful-Drupal/restful/merges","archive_url":"https://api.github.com/repos/RESTful-Drupal/restful/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RESTful-Drupal/restful/downloads","issues_url":"https://api.github.com/repos/RESTful-Drupal/restful/issues{/number}","pulls_url":"https://api.github.com/repos/RESTful-Drupal/restful/pulls{/number}","milestones_url":"https://api.github.com/repos/RESTful-Drupal/restful/milestones{/number}","notifications_url":"https://api.github.com/repos/RESTful-Drupal/restful/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RESTful-Drupal/restful/labels{/name}","releases_url":"https://api.github.com/repos/RESTful-Drupal/restful/releases{/id}","created_at":"2014-03-19T19:58:55Z","updated_at":"2015-11-19T14:58:05Z","pushed_at":"2015-11-24T22:58:28Z","git_url":"git://github.com/RESTful-Drupal/restful.git","ssh_url":"git@github.com:RESTful-Drupal/restful.git","clone_url":"https://github.com/RESTful-Drupal/restful.git","svn_url":"https://github.com/RESTful-Drupal/restful","homepage":"https://drupal.org/project/restful","size":3876,"stargazers_count":290,"watchers_count":290,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":92,"mirror_url":null,"open_issues_count":126,"forks":92,"open_issues":126,"watchers":290,"default_branch":"7.x-2.x"}},"_links":{"self":{"href":"https://api.github.com/repos/RESTful-Drupal/restful/pulls/758"},"html":{"href":"https://github.com/RESTful-Drupal/restful/pull/758"},"issue":{"href":"https://api.github.com/repos/RESTful-Drupal/restful/issues/758"},"comments":{"href":"https://api.github.com/repos/RESTful-Drupal/restful/issues/758/comments"},"review_comments":{"href":"https://api.github.com/repos/RESTful-Drupal/restful/pulls/758/comments"},"review_comment":{"href":"https://api.github.com/repos/RESTful-Drupal/restful/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/RESTful-Drupal/restful/pulls/758/commits"},"statuses":{"href":"https://api.github.com/repos/RESTful-Drupal/restful/statuses/97003380a10ac5f448287196aa0abf9aa065838a"}}}}