Use the Session. Prevent viewing B if there is not some state in the Session that should be put there whenever visiting A
Jul 16, 2023
7
Level 1
Forcing page flow
Hi, I'm using Laravel, Inertia and React. For my front end I would like to make a strict user flow, so users can only view page B after they have viewed page A, so that users cant skip past the important bits. Basically the experience I am building needs the users location.
These users do not have accounts and it is open to the masses.
How can i prevent users from going straight to a particular route e.g. myroute/two if they haven't been to myroute/one?
Thanks in advance
Level 104
1 like
Please or to participate in this conversation.