-
Hi all, I have a layout route(no path) and all other routes are its children. Layout provides header etc. Inside header(layout) there is a login component which submits a POST action through fetcher.Form. What value should the action get in order to refer to layout route and not the active route? I tried action="" but still goes to '/'. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
My routes |
Beta Was this translation helpful? Give feedback.
-
Layout routes doesn't have a URL, so they can't be used in the |
Beta Was this translation helpful? Give feedback.
Layout routes doesn't have a URL, so they can't be used in the
action
attribute of a form. Give the route a URL and you will be able to reference it.