diff --git a/user_guide_src/source/changelogs/v4.3.2.rst b/user_guide_src/source/changelogs/v4.3.2.rst index 9249f86fdb5d..fbb4e016ae63 100644 --- a/user_guide_src/source/changelogs/v4.3.2.rst +++ b/user_guide_src/source/changelogs/v4.3.2.rst @@ -12,6 +12,17 @@ Release Date: Unreleased BREAKING ******** +Behavior Changes +================ + +base_url() +---------- + +Due to a bug, in previous versions :php:func:`base_url()` without argument returned baseURL +without a trailing slash (``/``) like ``http://localhost:8080``. Now it returns +baseURL with a trailing slash. This is the same behavior as ``base_url()`` in +CodeIgniter 3. + Message Changes *************** diff --git a/user_guide_src/source/helpers/url_helper.rst b/user_guide_src/source/helpers/url_helper.rst index 1b17159bbe4a..389b83c3ef62 100644 --- a/user_guide_src/source/helpers/url_helper.rst +++ b/user_guide_src/source/helpers/url_helper.rst @@ -64,6 +64,10 @@ The following functions are available: .. note:: Since v4.3.0, if you set ``Config\App::$allowedHostnames``, this returns the URL with the hostname set in it if the current URL matches. + .. note:: In previous versions, this returned the base URL without a trailing + slash (``/``) when called with no argument. The bug was fixed and + since v4.3.2 it returns the base URL with a trailing slash. + Returns your site base URL, as specified in your config file. Example: .. literalinclude:: url_helper/003.php diff --git a/user_guide_src/source/installation/upgrade_432.rst b/user_guide_src/source/installation/upgrade_432.rst new file mode 100644 index 000000000000..f61e57012d6a --- /dev/null +++ b/user_guide_src/source/installation/upgrade_432.rst @@ -0,0 +1,56 @@ +############################## +Upgrading from 4.3.1 to 4.3.2 +############################## + +Please refer to the upgrade instructions corresponding to your installation method. + +- :ref:`Composer Installation App Starter Upgrading ` +- :ref:`Composer Installation Adding CodeIgniter4 to an Existing Project Upgrading ` +- :ref:`Manual Installation Upgrading ` + +.. contents:: + :local: + :depth: 2 + +Breaking Changes +**************** + +base_url() +========== + +The :php:func:`base_url()` behavior has been fix. In previous versions, when you +call ``base_url()`` **without argument**, it returned baseURL without a trailing +slash (``/``). Now it returns baseURL with a trailing slash. For example: + +- before: ``http://example.com`` +- after: ``http://example.com/`` + +If you have code to call ``base_url()`` without argument, you may need to adjust the URLs. + +Project Files +************* + +Some files in the **project space** (root, app, public, writable) received updates. Due to +these files being outside of the **system** scope they will not be changed without your intervention. + +There are some third-party CodeIgniter modules available to assist with merging changes to +the project space: `Explore on Packagist `_. + +Content Changes +=============== + +The following files received significant changes (including deprecations or visual adjustments) +and it is recommended that you merge the updated versions with your application: + +Config +------ + +- @TODO + +All Changes +=========== + +This is a list of all files in the **project space** that received changes; +many will be simple comments or formatting that have no effect on the runtime: + +- @TODO diff --git a/user_guide_src/source/installation/upgrading.rst b/user_guide_src/source/installation/upgrading.rst index f5600aa52d00..d754d020b55c 100644 --- a/user_guide_src/source/installation/upgrading.rst +++ b/user_guide_src/source/installation/upgrading.rst @@ -16,6 +16,7 @@ See also :doc:`./backward_compatibility_notes`. backward_compatibility_notes + upgrade_432 upgrade_431 upgrade_430 upgrade_4212