diff --git a/core/themes/seven/templates/install-page.html.twig b/core/themes/seven/templates/install-page.html.twig
index 98b3f8a..ffbc553 100644
--- a/core/themes/seven/templates/install-page.html.twig
+++ b/core/themes/seven/templates/install-page.html.twig
@@ -34,7 +34,7 @@
{% if title %}
{{ title }}
{% endif %}
- {{ messages }}
+ {{ page.messages }}
{{ page.content }}
diff --git a/core/themes/seven/templates/maintenance-page.html.twig b/core/themes/seven/templates/maintenance-page.html.twig
index 01bc89b..4fdbd24 100644
--- a/core/themes/seven/templates/maintenance-page.html.twig
+++ b/core/themes/seven/templates/maintenance-page.html.twig
@@ -34,7 +34,7 @@
{% if title %}
{{ title }}
{% endif %}
- {{ messages }}
+ {{ page.messages }}
{{ page.content }}
diff --git a/core/themes/seven/templates/page.html.twig b/core/themes/seven/templates/page.html.twig
index bbc804f..dfd4e4f 100644
--- a/core/themes/seven/templates/page.html.twig
+++ b/core/themes/seven/templates/page.html.twig
@@ -38,7 +38,6 @@
* - title: The page title, for use in the actual content.
* - title_suffix: Additional output populated by modules, intended to be
* displayed after the main title tag that appears in the template.
- * - messages: Status and error messages. Should be displayed prominently.
* - tabs: Tabs linking to any sub-pages beneath the current page (e.g., the
* view and edit tabs when displaying a node).
* - action_links: Actions local to the page, such as "Add menu" on the menu
@@ -52,6 +51,7 @@
* Regions:
* - page.page_top: Items for the header region.
* - page.highlighted: Items for the highlighted content region.
+ * - page.messages: Status and error messages. Should be displayed prominently.
* - page.help: Dynamic help text, mostly for admin pages.
* - page.content: The main content of the current page.
* - page.sidebar_first: Items for the first sidebar.
@@ -85,9 +85,7 @@
- {% if messages %}
- {{ messages }}
- {% endif %}
+ {{ page.messages }}
{% if page.help %}
{{ page.help }}