{"action":"closed","issue":{"url":"https://api.github.com/repos/bcit-ci/CodeIgniter4/issues/947","repository_url":"https://api.github.com/repos/bcit-ci/CodeIgniter4","labels_url":"https://api.github.com/repos/bcit-ci/CodeIgniter4/issues/947/labels{/name}","comments_url":"https://api.github.com/repos/bcit-ci/CodeIgniter4/issues/947/comments","events_url":"https://api.github.com/repos/bcit-ci/CodeIgniter4/issues/947/events","html_url":"https://github.com/bcit-ci/CodeIgniter4/issues/947","id":299437871,"number":947,"title":"url_helper current_url https fix.","user":{"login":"byazrail","id":5870455,"avatar_url":"https://avatars0.githubusercontent.com/u/5870455?v=4","gravatar_id":"","url":"https://api.github.com/users/byazrail","html_url":"https://github.com/byazrail","followers_url":"https://api.github.com/users/byazrail/followers","following_url":"https://api.github.com/users/byazrail/following{/other_user}","gists_url":"https://api.github.com/users/byazrail/gists{/gist_id}","starred_url":"https://api.github.com/users/byazrail/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/byazrail/subscriptions","organizations_url":"https://api.github.com/users/byazrail/orgs","repos_url":"https://api.github.com/users/byazrail/repos","events_url":"https://api.github.com/users/byazrail/events{/privacy}","received_events_url":"https://api.github.com/users/byazrail/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-02-22T17:19:40Z","updated_at":"2018-02-23T14:41:18Z","closed_at":"2018-02-23T14:41:18Z","author_association":"NONE","body":"hi guys,\r\n\r\n`\r\n\tfunction current_url(bool $returnObject = false)\r\n\t{\r\n\t\t$url\t= \\CodeIgniter\\Config\\Services::request()->uri;\r\n\t\t\r\n\t\tif (\\CodeIgniter\\Config\\Services::request()->isSecure())\r\n\t\t{\r\n\t\t\t$scheme = 'https';\r\n\t\t}\r\n\r\n\t\tif (isset($scheme))\r\n\t\t{\r\n\t\t\t$url->setScheme($scheme);\r\n\t\t}\r\n\r\n\t\treturn $returnObject === true ? $url : (string) $url;\r\n\t}\r\n`"}}
{"actor":{"display_login":"byazrail"}}