[minor] allow a custom redirect field