It's not a beginner question at this stage.
I see your point, someone in
#939530480636809227 channel ask something very similar about avoiding the redirection.
You could extract the logic I described before in a mixin, and use
fragment_name
class attribute to know what to render in
form_valid
.