I have a page containing several forms.
If a user submits a form, then only the current form should get submitted (not the other forms of the page).
On the server the form gets validated.
Case 1: If validation failed, then the server sends html to the client and the particular form should get swapped and the new form should be added to the DOM. This new form contains an error message. The user can now fix his mistake an submit the form again.
Case 2: The form validation was successful, the data got saved. Now I want to trigger a full-page redirect on the client.
I read the docs of htmx hx-target. I managed to get case-1 working (I like this feature of htmx).
But how can the server trigger a full-page redirect?