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
Using current_url function produces an unexpected result.
Expecting accurate url, server root with uri string provided instead.
Screenshot attached.
CodeIgniter 4 version
Commit # a424b3e of the develop branch.
Affected module(s)
URL Helper.
Expected behavior, and steps to reproduce if appropriate
Expected behavior:
Function should return URL as set in the App\Config\App.
EDIT: Actual expected behavior: the full URL (including segments) of the page where the function is executed. As pointed out by @dafriend .
Steps to reproduce:
Call current_url in a view.
Context
OS: Mac OS X 10.13.6
Web server: Apache 2.4.33
PHP version: 7.2.14
The text was updated successfully, but these errors were encountered:
jayfortner
added
the
bug
Verified issues on the current code behavior or pull requests that will fix them
label
Oct 27, 2019
@dafriend Not confused. I just wrote a bad expected behavior statement. I'll do my best to update it. I think we all know what this function is supposed to do and if you look at the attached screenshot you can see that current_url is not returning the url as seen in the browser. My reference to App/Config/App was to avoid implying that it should return with the request uri.
Describe the bug
Using current_url function produces an unexpected result.
Expecting accurate url, server root with uri string provided instead.
Screenshot attached.
CodeIgniter 4 version
Commit # a424b3e of the
develop
branch.Affected module(s)
URL Helper.
Expected behavior, and steps to reproduce if appropriate
Expected behavior:
EDIT: Actual expected behavior: the full URL (including segments) of the page where the function is executed. As pointed out by @dafriend .
Steps to reproduce:
Context
The text was updated successfully, but these errors were encountered: