Skip to content

Commit 82fa07a

Browse files
committed
docs: clarify that current_url() returns URL based on Config\App
1 parent cb4d68b commit 82fa07a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

system/Helpers/url_helper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ function base_url($relativePath = '', ?string $scheme = null): string
109109

110110
if (! function_exists('current_url')) {
111111
/**
112-
* Returns the current full URL based on the IncomingRequest.
112+
* Returns the current full URL based on the Config\App settings and IncomingRequest.
113113
* String returns ignore query and fragment parts.
114114
*
115115
* @param bool $returnObject True to return an object instead of a string

user_guide_src/source/helpers/url_helper.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ The following functions are available:
8989
:rtype: string|\\CodeIgniter\\HTTP\\URI
9090

9191
Returns the full URL (including segments) of the page being currently
92-
viewed.
92+
viewed. But It is created based on the ``Config\App`` settings, and not intended to match the browser URL.
9393

9494
.. note:: Calling this function is the same as doing this:
9595

0 commit comments

Comments
 (0)