We have a some conditional logic for a dashboard style setup. We have urls like :
neptune/{id}/details
neptune/{id}/options
neptune/{id}/confirm
etc..
The actual urls accessible depend on the status of the elements in question, and the whole process has a flow setup - the user has to go through each part in turn, ie. details > options > confirm, however they can go back and revise and drop out entirely and pick up where they left off later.
This all works fine, but to smooth out things we'd ideally have a way to automatically force a redirect from a urls based on the current state. If this were ExpressionEngine we'd have a tag like :
{redirect="neptune/{id}/confirm"}
What's the equivalent Craft/Twig setup? Or is there an alternative better setup.
Note : this isn't for the main flow of the user, only needed for the actual edge cases where a user may revisit (ie. manually) an out of flow url somehow, so isn't related to the core logic.