diff --git a/core/lib/Drupal/Core/Ajax/AjaxResponse.php b/core/lib/Drupal/Core/Ajax/AjaxResponse.php index 2a72267..b823288 100644 --- a/core/lib/Drupal/Core/Ajax/AjaxResponse.php +++ b/core/lib/Drupal/Core/Ajax/AjaxResponse.php @@ -133,6 +133,9 @@ protected function ajaxRender(Request $request) { $scripts = drupal_add_js(); if (!empty($scripts['settings'])) { $settings = drupal_merge_js_settings($scripts['settings']['data']); + foreach (array('basePath', 'currentPath', 'scriptPath', 'pathPrefix') as $item) { + unset($settings[$item]); + } $this->addCommand(new SettingsCommand($settings, TRUE), TRUE); }