<form> in <turbo-frame> with separate [action] when turboing

Problem:

I have a <form> in a <turbo-frame>.

I have two urls:

  1. url1 that returns the whole page
  2. 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:

  1. Is there any existing non-documented data-attribute I can use for this?
  2. If not, can anybody suggest a workaround?

My backend is the Enonic XP CMS if you were wondering…