File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 **.
Original file line number Diff line number Diff 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+
205207Redirecting 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+
216220If a redirect route is matched during a page load, the user will be immediately redirected to the new page before a
217221controller can be loaded.
218222
You can’t perform that action at this time.
0 commit comments