You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On every page, lets say https://starter.test/admin/usercontroller/test for this example, using base_url(uri_string()) I can get the expected https://starter.test/admin/usercontroller/test but using current_url() I'm getting http://starter.test/admin/usercontroller/test even though on documentation it says
Calling this function is the same as doing this:
base_url(uri_string());
Describe the bug
Currently I have configuration for my web on the .env like this
On every page, lets say
https://starter.test/admin/usercontroller/test
for this example, using base_url(uri_string()) I can get the expectedhttps://starter.test/admin/usercontroller/test
but using current_url() I'm gettinghttp://starter.test/admin/usercontroller/test
even though on documentation it sayshttps://codeigniter.com/user_guide/helpers/url_helper.html?highlight=current_url#current_url
CodeIgniter 4 version
v4.0.4
Affected module(s)
URL Helper
Expected behavior, and steps to reproduce if appropriate
Calling current_url() should return matched url protocol with currently opened page
Context
The text was updated successfully, but these errors were encountered: