Allow confirmation redirect to be a function or static string.