diff --git a/wagtail/admin/templates/wagtailadmin/generic/chooser/chooser.html b/wagtail/admin/templates/wagtailadmin/generic/chooser/chooser.html index ac642165bb..5221904aa5 100644 --- a/wagtail/admin/templates/wagtailadmin/generic/chooser/chooser.html +++ b/wagtail/admin/templates/wagtailadmin/generic/chooser/chooser.html @@ -1,5 +1,5 @@ {% load i18n wagtailadmin_tags %} -{% include "wagtailadmin/shared/header.html" with title=page_title merged=1 icon=icon %} +{% include "wagtailadmin/shared/header.html" with title=page_title merged=1 icon=header_icon %}
diff --git a/wagtail/admin/views/generic/chooser.py b/wagtail/admin/views/generic/chooser.py index 47b8f8c283..f42250ed7f 100644 --- a/wagtail/admin/views/generic/chooser.py +++ b/wagtail/admin/views/generic/chooser.py @@ -23,7 +23,7 @@ class ModalPageFurnitureMixin(ContextMixin): context = super().get_context_data(**kwargs) context.update( { - "icon": self.icon, + "header_icon": self.icon, "page_title": self.page_title, } )