Commit 67fdbebd authored by Crell's avatar Crell Committed by effulgentsia

Don't render subrequest as a full page, just pass them through normal drupal_render().

parent 8504d429
......@@ -63,7 +63,8 @@ public function onView(GetResponseForControllerResultEvent $event) {
}
}
else {
$event->setResponse($this->onHtml($event));
$page_callback_result = $event->getControllerResult();
$event->setResponse(new Response(drupal_render($page_callback_result)));
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment