This module creates configurable redirects based on the state of a state_machine field.
Use case: assume you have a multistep onboarding wizard. You would like to make sure the user has accomplished the onboarding, and if not redirect back to the first unaccomplished step.
This module maps the states of the selected entity state_machine field to internal routes.
Based on your selection a redirect is triggered.
Currently, only the User entity is supported.
Install as any other module, configure: /admin/config/state-machine-redirect