Redirect to original page when creating new journal transaction

This commit is contained in:
RunasSudo 2023-05-28 13:49:42 +10:00
parent 4bdb31c35e
commit d67b2f4298
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A

View File

@ -64,7 +64,7 @@ def journal_new_transaction():
db.session.add(transaction)
db.session.commit()
return redirect(url_for('journal'))
return redirect(request.form.get('referrer', '') or url_for('journal'))
@app.route('/journal/edit-transaction', methods=['GET', 'POST'])
def journal_edit_transaction():