I have a form
<turbo-frame id="goals">
<form action="/add_goal">
<label for="goal_name">Goal Name</label>
<input type="text" id="goal_name" name="goal_name" placeholder="Goal name..">
<input type="submit" value="Add Goal">
</form>
</turbo-frame>
that I want to replace.
As a reply I send 303 and “Location: /added_goal” and “/added_goal” returns
<html>
<body>
<turbo-frame id="goals">
OK!
</turbo-frame>
</body>
</html>
Turbo sets the src on turbo-frame but does not replace the content.