feature: redirect

### CHANGE SUMMARY
* if an ```onFailure``` param is not defined, the router will check for the existence of an ```error``` state and redirect there