mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 02:36:28 +00:00 
			
		
		
		
	New middleware that should make sure the new forms redirect as well.
This commit is contained in:
		| @@ -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'; | ||||
|                 } | ||||
|             }, | ||||
|  | ||||
|   | ||||
| @@ -627,7 +627,7 @@ | ||||
|                     this.error_message = ''; | ||||
|                     button.prop("disabled", false); | ||||
|                 } else { | ||||
|                     window.location.href = 'transactions/show/' + groupId + '?message=updated'; | ||||
|                     window.location.href = window.previousUri + '?transaction_group_id=' + groupId+ '&message=updated'; | ||||
|                 } | ||||
|             }, | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user