Problem:
I have a <form>
in a <turbo-frame>
.
I have two urls:
-
url1
that returns the whole page -
url2
that returns a partial only containing my<turbo-frame>
.
I’m trying to build my page with progressive enhancement in mind. So I would want my [action]
to use url1
so that if JavaScript isn’t working, it will do a traditional page refresh.
But I would want turbo-frames to use the url2
, because it is smaller and quicker to send.
Question:
- Is there any existing non-documented data-attribute I can use for this?
- If not, can anybody suggest a workaround?
My backend is the Enonic XP CMS if you were wondering…