Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion system/Helpers/url_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ function base_url($relativePath = '', ?string $scheme = null): string

if (! function_exists('current_url')) {
/**
* Returns the current full URL based on the IncomingRequest.
* Returns the current full URL based on the Config\App settings and IncomingRequest.
* String returns ignore query and fragment parts.
*
* @param bool $returnObject True to return an object instead of a string
Expand Down
5 changes: 3 additions & 2 deletions user_guide_src/source/helpers/url_helper.rst
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,9 @@ The following functions are available:
:returns: The current URL
:rtype: string|\\CodeIgniter\\HTTP\\URI

Returns the full URL (including segments) of the page being currently
viewed.
Returns the full URL (including segments) of the page being currently viewed.
However for security reasons, it is created based on the ``Config\App`` settings,
and not intended to match the browser URL.

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

Expand Down