diff --git a/backend/__init__.py b/backend/__init__.py index a85123eb..bee1bc13 100644 --- a/backend/__init__.py +++ b/backend/__init__.py @@ -509,7 +509,10 @@ def changedetection_app(config=None, datastore_o=None): if request.method == 'POST' and not form.validate(): flash("An error occurred, please see below.", "error") - output = render_template("settings.html", form=form) + # Same as notification.py + base_url = os.getenv('BASE_URL', '').strip('"') + output = render_template("settings.html", form=form, base_url=base_url) + return output @app.route("/import", methods=['GET', "POST"]) diff --git a/backend/templates/settings.html b/backend/templates/settings.html index 0df9ded1..96671d25 100644 --- a/backend/templates/settings.html +++ b/backend/templates/settings.html @@ -82,7 +82,8 @@ SMTPS - mailtos://user:pass@mail.domain.com?to=receivingAddress@example.com") }} - URLs generated by changedetection.io (such as {diff_url}) require the BASE_URL environment variable set. + URLs generated by changedetection.io (such as {diff_url}) require the BASE_URL environment variable set.
+ Your BASE_URL var is currently "{{base_url}}"