diff --git a/core/modules/system/system.module b/core/modules/system/system.module index 865e101..e07fa56 100644 --- a/core/modules/system/system.module +++ b/core/modules/system/system.module @@ -249,7 +249,7 @@ function system_theme_suggestions_html(array $variables) { $path_args = ['']; } else { - $path_args = explode('/', Url::fromRoute('')->getInternalPath()); + $path_args = explode('/', ltrim(\Drupal::service('path.current')->getPath(), '/')); } return theme_get_suggestions($path_args, 'html'); }