-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
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
Bug: uri_string() does not return subfolders in baseURL #7124
Comments
The documented behavior of
is not the same as CI3's uri_string(). CI3:
|
That commit was to maintain the current default behavior. I was unaware of CI3's function at the time - not a deliberate change from its behavior. |
Thank you. I checked the behavior in v4.0.5. It is the same as v4.3.1.
Navigate to The results:
|
Probably @codeigniter4/core-team Can I remove the parameter as a bug fix? |
Fine by me. I will push again for a separate class to handle internal URIs; I think we need it despite the complexity it adds. |
I sent a PR #7135 |
PHP Version
8.1
CodeIgniter4 Version
4.3.1
CodeIgniter4 Installation Method
Composer (using
codeigniter4/appstarter
)Which operating systems have you tested for this bug?
macOS
Which server did you use?
apache
Database
n/a
What happened?
uri_string()
should return the absolute path part of the current URL.https://codeigniter4.github.io/CodeIgniter4/helpers/url_helper.html#uri_string
But it returns only the route.
Steps to Reproduce
Navigate to
http://localhost:8888/ci431/public/home
.Expected Output
If the current user guide is correct:
Anything else?
Related #7123
The parameter
$relative
was introduced in #3682 aa48ef0 v4.0.5The text was updated successfully, but these errors were encountered: