Skip to content

Commit c674c96

Browse files
committed
docs: add link to detailed page
1 parent cf440fa commit c674c96

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

user_guide_src/source/changelogs/v4.2.0.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ Others
101101
- New :doc:`../outgoing/view_decorators` allow modifying the generated HTML prior to caching.
102102
- Added Validation Strict Rules. See :ref:`validation-traditional-and-strict-rules`.
103103
- Added support for webp files to **app/Config/Mimes.php**.
104-
- RouteCollection::addRedirect() can now use placeholders.
104+
- ``RouteCollection::addRedirect()`` can now use placeholders. See :ref:`redirecting-routes` for details.
105105
- Debugbar enhancements
106106
- Debug toolbar is now using ``microtime()`` instead of ``time()``.
107107
- Added a sample file for `Preloading <https://www.php.net/manual/en/opcache.preloading.php>`_. See **preload.php**.

user_guide_src/source/incoming/routing.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,8 @@ define an array of routes and then pass it as the first parameter to the ``map()
202202

203203
.. literalinclude:: routing/021.php
204204

205+
.. _redirecting-routes:
206+
205207
Redirecting Routes
206208
==================
207209

@@ -213,6 +215,8 @@ redirect and is recommended in most cases:
213215

214216
.. literalinclude:: routing/022.php
215217

218+
.. note:: Since v4.2.0 ``addRedirect()`` can use placeholders.
219+
216220
If a redirect route is matched during a page load, the user will be immediately redirected to the new page before a
217221
controller can be loaded.
218222

0 commit comments

Comments
 (0)