File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -2117,21 +2117,21 @@ To handle this, add the ``data-live-ignore`` attribute to the element:
2117
2117
Define another route for your Component
2118
2118
---------------------------------------
2119
2119
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 .
2123
2123
2124
- To use another route, you need to declare it :
2124
+ To use a different route, first declare it:
2125
2125
2126
2126
.. code-block :: yaml
2127
2127
2128
- # config/routes/attributes .yaml
2128
+ # config/routes.yaml
2129
2129
live_component_admin :
2130
2130
path : /admin/_components/{_live_component}/{_live_action}
2131
2131
defaults :
2132
2132
_live_action : ' get'
2133
2133
2134
- then specify this new route to your component :
2134
+ Then specify this new route on your component:
2135
2135
2136
2136
.. code-block :: diff
2137
2137
You can’t perform that action at this time.
0 commit comments