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
Describe the bug
According to docsuri_string function
Returns the path part of your current URL.
While it returns path part relative to base_url.
CodeIgniter 4 version
4.0.3
Affected module(s)
docs (or URL Helper if what's in docs was the intended functionality)
Expected behavior, and steps to reproduce if appropriate
example page in service: example.com/ci-blog/login
base url: example.com/ci-blog/
url to the page relative to base url: login uri_string returns: login
according to docs it should return: /ci-blog/login (or without initial slash)
While it can be considered that it's the function that does not work as intended, I think the way it works currently is the one that's the most useful. That's why I'd like to suggest updating documentation instead:
Returns the path part of your current URL ** that is relative to base url**.
Context
OS: Windows 10
Web server: Apache 2.4.41
PHP version: 7.3.12
The text was updated successfully, but these errors were encountered:
SoulReaver
added
the
bug
Verified issues on the current code behavior or pull requests that will fix them
label
May 11, 2020
Describe the bug
According to docs
uri_string
functionWhile it returns path part relative to base_url.
CodeIgniter 4 version
4.0.3
Affected module(s)
docs (or URL Helper if what's in docs was the intended functionality)
Expected behavior, and steps to reproduce if appropriate
example page in service: example.com/ci-blog/login
base url: example.com/ci-blog/
url to the page relative to base url: login
uri_string
returns: loginaccording to docs it should return: /ci-blog/login (or without initial slash)
While it can be considered that it's the function that does not work as intended, I think the way it works currently is the one that's the most useful. That's why I'd like to suggest updating documentation instead:
Context
The text was updated successfully, but these errors were encountered: