diff --git a/core/lib/Drupal/Core/Render/MainContent/AjaxRenderer.php b/core/lib/Drupal/Core/Render/MainContent/AjaxRenderer.php index 2e9998d..73ce605 100644 --- a/core/lib/Drupal/Core/Render/MainContent/AjaxRenderer.php +++ b/core/lib/Drupal/Core/Render/MainContent/AjaxRenderer.php @@ -75,6 +75,7 @@ public function renderResponse(array $main_content, Request $request, RouteMatch $output = $this->drupalRenderRoot($status_messages); $output_trimmed = trim($output); if (!empty($output_trimmed)) { + // There are messages so output them exactly as the theme renders them. $response->addCommand(new PrependCommand(NULL, $output)); } return $response;