diff --git a/core/modules/views/lib/Drupal/views/Controller/ViewAjaxController.php b/core/modules/views/lib/Drupal/views/Controller/ViewAjaxController.php index f768db4..6f7c093 100644 --- a/core/modules/views/lib/Drupal/views/Controller/ViewAjaxController.php +++ b/core/modules/views/lib/Drupal/views/Controller/ViewAjaxController.php @@ -96,7 +96,7 @@ public function ajaxView(Request $request) { if ($view && $view->access($display_id)) { // Fix the current path for paging. if (!empty($path)) { - _current_path($path); + $request->attributes->set('system_path', $path); } // Add all $_POST data, because AJAX is always a post and many things,