Skip to content

Commit

Permalink
Merge pull request #7736 from cakephp/ADmad-patch-1
Browse files Browse the repository at this point in the history
Add warning about fallback routes.
  • Loading branch information
ADmad authored Sep 30, 2023
2 parents 5ba4108 + ed8888f commit 7758a81
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions en/development/routing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1655,6 +1655,14 @@ Is equivalent to the following explicit calls::
with ``{plugin}`` and/or ``{controller}`` route elements will result in
inconsistent URL case.

.. warning::
Fallback route templates are very generic and allow URLs to be generated
and parsed for controllers & actions that do not exist. Fallback URLs can
also introduce ambiguity and duplication in your URLs.

As your application grows, it is recommended to move away from fallback URLs
and explicitly define the routes in your application.

Creating Persistent URL Parameters
==================================

Expand Down

0 comments on commit 7758a81

Please sign in to comment.