New middleware that should make sure the new forms redirect as well.

This commit is contained in:
James Cole
2019-08-05 19:45:20 +02:00
parent e37100ae97
commit 00d785d891
11 changed files with 149 additions and 569 deletions

View File

@@ -411,8 +411,9 @@
button.prop("disabled", false);
}
} else {
console.log('Will redirect to transaction.');
window.location.href = 'transactions/show/' + groupId + '?message=created';
console.log('Will redirect to previous URL. (' + previousUri + ')');
window.location.href = window.previousUri + '?transaction_group_id=' + groupId+ '&message=created';
//window.location.href = 'transactions/show/' + groupId + '?message=created';
}
},