Skip to content

Commit 3ca4226

Browse files
committed
docs: add user guide about breaking changes of previous_url
1 parent 753f9e6 commit 3ca4226

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

user_guide_src/source/changelogs/v4.2.0.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ Behavior Changes
3232
- To prevent unexpected access from the web browser, if a controller is added to a cli route (``$routes->cli()``), all methods of that controller are no longer accessible via auto-routing.
3333
- There is a possible backward compatibility break for those users extending the History Collector and they should probably update ``History::setFiles()`` method.
3434
- The :php:func:`dot_array_search`'s unexpected behavior has been fixed. Now ``dot_array_search('foo.bar.baz', ['foo' => ['bar' => 23]])`` returns ``null``. The previous versions returned ``23``.
35+
- The ``CodeIgniter::storePreviousURL()`` has been changed to store only the URLs whose Content-Type was ``text/html``. It also affects the behavior of ``previous_url()`` and ``redirect()->back()``.
3536

3637
Enhancements
3738
************

user_guide_src/source/installation/upgrade_420.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ Breaking Changes
4242
****************
4343

4444
- The ``system/bootstrap.php`` file no longer returns a ``CodeIgniter`` instance, and does not load the ``.env`` file (now handled in ``index.php`` and ``spark``). If you have code that expects these behaviors it will no longer work and must be modified. This has been changed to make `Preloading <https://www.php.net/manual/en/opcache.preloading.php>`_ easier to implement.
45+
- ``previous_url()`` has been changed to return only the URLs whose Content-Type was ``text/html``. Accordingly, the behavior of ``redirect()->back()`` has been changed.
4546

4647
Breaking Enhancements
4748
*********************

0 commit comments

Comments
 (0)