diff --git a/backend/__init__.py b/backend/__init__.py index 9a92d456..1b668087 100644 --- a/backend/__init__.py +++ b/backend/__init__.py @@ -427,7 +427,11 @@ def changedetection_app(config=None, datastore_o=None): flash('Notifications queued.') - return redirect(url_for('index')) + # Diff page [edit] link should go back to diff page + if request.args.get("next") and request.args.get("next") == 'diff': + return redirect(url_for('diff_history_page', uuid=uuid)) + else: + return redirect(url_for('index')) else: if request.method == 'POST' and not form.validate(): diff --git a/backend/templates/base.html b/backend/templates/base.html index 4171142e..745588ad 100644 --- a/backend/templates/base.html +++ b/backend/templates/base.html @@ -45,7 +45,7 @@ {% else %}