From 74657dde5cc5669a63f48425fffe3eedc4b976a5 Mon Sep 17 00:00:00 2001
From: xjm <xjm@65776.no-reply.drupal.org>
Date: Mon, 25 Jul 2016 11:24:29 -0500
Subject: [PATCH] Revert "Issue #2771733 by joelpittet: Remove _no_big_pipe:
 TRUE @todo"

This reverts commit 7d779282cd14e9d29137adf3d23253412261578e.
---
 core/modules/big_pipe/big_pipe.module  | 3 ++-
 core/modules/system/system.routing.yml | 2 ++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/core/modules/big_pipe/big_pipe.module b/core/modules/big_pipe/big_pipe.module
index fa0518ad3d1f..18bbbb22cda8 100644
--- a/core/modules/big_pipe/big_pipe.module
+++ b/core/modules/big_pipe/big_pipe.module
@@ -58,7 +58,8 @@ function big_pipe_page_attachments(array &$page) {
           '#noscript' => TRUE,
           '#attributes' => [
             'http-equiv' => 'Refresh',
-            'content' => '0; URL=' . Url::fromRoute('big_pipe.nojs', [], ['query' => \Drupal::service('redirect.destination')->getAsArray()])->toString(),
+            // @todo: Switch to Url::fromRoute() once https://www.drupal.org/node/2589967 is resolved.
+            'content' => '0; URL=' . Url::fromUri('internal:/big_pipe/no-js', ['query' => \Drupal::service('redirect.destination')->getAsArray()])->toString(),
           ],
         ],
         'big_pipe_detect_nojs',
diff --git a/core/modules/system/system.routing.yml b/core/modules/system/system.routing.yml
index e19e1143b3cb..5f75f2f28560 100644
--- a/core/modules/system/system.routing.yml
+++ b/core/modules/system/system.routing.yml
@@ -445,6 +445,8 @@ system.batch_page.html:
     _format: 'html'
   options:
     _admin_route: TRUE
+    # @todo Remove the '_no_big_pipe' route option when https://www.drupal.org/node/2589967 lands.
+    _no_big_pipe: TRUE
 
 system.batch_page.json:
   path: '/batch'
-- 
GitLab