We’ve had a problem with continually declaring a jump to start page if you press cancel on any of the flow steps:
It is, however, more comfortable to declare the so-called global transition. You specify in one place that, for example, a non-native “return” action redirects to an initial state of the view and you do not have to declare it in each state. In a similar way you can, for example, redirect to the homepage or to the login form.
Let’s now add a global transition to our flow file:
I got rid of the goers going to the state of the start from the individual states, and in their place, I inserted the element from line 42-44. By the way, a little note – for some reason the global-transitions section must be at the end of the file. Whenever she was somewhere else, I was getting strange errors and usually referring to the following sections.