Add redirect option in beforeChange event, document more examples