diff --git a/powerdnsadmin/routes/admin.py b/powerdnsadmin/routes/admin.py
index 5a90e10..eb27950 100644
--- a/powerdnsadmin/routes/admin.py
+++ b/powerdnsadmin/routes/admin.py
@@ -2055,7 +2055,14 @@ def global_search():
else:
pass
- return render_template('admin_global_search.html', domains=domains, records=records, comments=comments)
+ params: dict = {
+ 'query': query if query is not None else '',
+ 'domains': domains,
+ 'records': records,
+ 'comments': comments,
+ }
+
+ return render_template('admin_global_search.html', **params)
def validateURN(value):
diff --git a/powerdnsadmin/templates/admin_global_search.html b/powerdnsadmin/templates/admin_global_search.html
index dfe14a6..73de785 100644
--- a/powerdnsadmin/templates/admin_global_search.html
+++ b/powerdnsadmin/templates/admin_global_search.html
@@ -1,201 +1,258 @@
{% extends "base.html" %}
-
{% set active_page = "admin_global_search" %}
-
-{% block title %}
-
- Global Search - {{ SITE_NAME }}
-
-{% endblock %}
+{% block title %}Global Search - {{ SITE_NAME }}{% endblock %}
{% block dashboard_stat %}
-