We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hi guys,
` function current_url(bool $returnObject = false) { $url = \CodeIgniter\Config\Services::request()->uri;
if (\CodeIgniter\Config\Services::request()->isSecure()) { $scheme = 'https'; } if (isset($scheme)) { $url->setScheme($scheme); } return $returnObject === true ? $url : (string) $url; }
`
The text was updated successfully, but these errors were encountered:
It should be already from the Request class. Are you not seeing that?
Sorry, something went wrong.
I see, base_url() https fix. not be use current_url().
see https://blabla.com/foo/bar current_url() - http://blabla.com/foo/bar
What is your baseURL set to in application/Config/App.php? base_url uses that to generate the URL.
No branches or pull requests
hi guys,
`
function current_url(bool $returnObject = false)
{
$url = \CodeIgniter\Config\Services::request()->uri;
`
The text was updated successfully, but these errors were encountered: