Skip to content
Snippets Groups Projects

Issue #3451869: Automated Drupal 11 compatibility fixes for ajax_comments

Files
5
@@ -188,7 +188,7 @@ class AjaxCommentsController extends ControllerBase {
// Override the ajax route object with the actual entity route.
$entity_url = $entity->toURL();
if ($route) {
$comment_display[0]['comments']['pager']['#route_name'] = $route;
$comment_display[0]['comments']['pager']['#route_name'] = $name;
$comment_display[0]['comments']['pager']['#route_parameters'] = $entity_url->getRouteParameters();
}
Loading