diff --git a/invenio_config_tuw/startup.py b/invenio_config_tuw/startup.py
index 73a1b717d4e3cfd7101d62ed08ca9d8b79b4c02f..09e7b8b61042190103777fc72fbda20cc67620ac 100644
--- a/invenio_config_tuw/startup.py
+++ b/invenio_config_tuw/startup.py
@@ -141,6 +141,10 @@ def override_flask_config(app):
     """
     app.config = TUWConfig.from_flask_config(app.config)
 
+    # we need to override the "config" global, as that might still be the
+    # old "normal" Flask config, and thus have different content
+    app.add_template_global(app.config, "config")
+
 
 def patch_flask_create_url_adapter(app):
     """Patch Flask's {host,subdomain}_matching with 3.1 behavior.