I know this is an older post… but I ran into the same problem as @AJHarris01 and I found this post on the community here with the fix for it.
<script>
window.addEventListener('submit-form-success-form1', (e) => {
const response = e.detail.response || {};
const data = response.data;
if (data && data.redirect) {
window.location.href = data.redirect;
}
});
</script>