Skip to content

Commit f270fe4

Browse files
committed
[Live] Minor tweaks to new route documentation
1 parent 27e2be9 commit f270fe4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/LiveComponent/doc/index.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2117,21 +2117,21 @@ To handle this, add the ``data-live-ignore`` attribute to the element:
21172117
Define another route for your Component
21182118
---------------------------------------
21192119

2120-
The default route for live components is ``/components/{_live_component}/{_live_action}``
2121-
If you have multiples firewalls in your app, you may want to specify another route for your component.
2122-
It may be useful if you want to get the current logged in user in your component.
2120+
The default route for live components is ``/components/{_live_component}/{_live_action}``.
2121+
Sometimes it may be useful to customize this URL - e.g. so that the component lives
2122+
under a specific firewall.
21232123

2124-
To use another route, you need to declare it :
2124+
To use a different route, first declare it:
21252125

21262126
.. code-block:: yaml
21272127
2128-
# config/routes/attributes.yaml
2128+
# config/routes.yaml
21292129
live_component_admin:
21302130
path: /admin/_components/{_live_component}/{_live_action}
21312131
defaults:
21322132
_live_action: 'get'
21332133
2134-
then specify this new route to your component :
2134+
Then specify this new route on your component:
21352135

21362136
.. code-block:: diff
21372137

0 commit comments

Comments
 (0)