I have created an app with Vue with some different views/components. The views/components have to get run through in an specific order (MainPage -> Step1 -> Step2 -> Step3 -> FinalPage --> MainPage...).
As I am learning Vue I managed the navigation with v-if directives which worked well, as there are no URLs, so I was able to implement the logic in each view/component like
//pseudocode in each view/component
checkConditionsToMoveOn ? moveToNextPae : showErrorWithModalAndStayOnPage;
Getting more professional I implemented vue-router, which somehow broke my app as I am able now to trick the logic to pass a step with just changing the URL manually.
I can think of implementing some navigation guards, but then I have to move the conditions to my router/index.js file, which I think is not really pretty.
Is there any best practice to solve this problem?
I'd appreciate a hint, thanks.