Chris@0: refresh to work without JavaScript. Chris@0: 'system.batch_page.html', Chris@0: // When a user would install the BigPipe module using a browser and with Chris@0: // JavaScript disabled, the first response contains the status messages Chris@0: // for installing a module, but then the BigPipe no-JS redirect occurs, Chris@0: // which then causes the user to not see those status messages. Chris@0: // @see https://www.drupal.org/node/2469431#comment-10901944 Chris@0: 'system.modules_list', Chris@0: ]; Chris@0: Chris@0: $route_collection = $event->getRouteCollection(); Chris@0: foreach ($no_big_pipe_routes as $excluded_route) { Chris@0: if ($route = $route_collection->get($excluded_route)) { Chris@0: $route->setOption('_no_big_pipe', TRUE); Chris@0: } Chris@0: } Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: */ Chris@0: public static function getSubscribedEvents() { Chris@0: $events[RoutingEvents::ALTER][] = ['onRoutingRouteAlterSetNoBigPipe']; Chris@0: return $events; Chris@0: } Chris@0: Chris@0: }