Skip to content
Snippets Groups Projects

Issue #3030711 by rollins: views/ajax is being used as path when breadcrumb is inside view header

Open Issue #3030711 by rollins: views/ajax is being used as path when breadcrumb is inside view header
1 file
+ 3
1
Compare changes
  • Side-by-side
  • Inline
+ 3
1
@@ -293,7 +293,9 @@ class EasyBreadcrumbBuilder implements BreadcrumbBuilderInterface {
// Ensure that Views AJAX requests do not seep into the breadcrumb. This
// can be a problem when the breadcrumb exists inside the view header.
if ($route_match->getRouteName() == 'views.ajax') {
$path = trim($this->currentPath->getPath(), '/');
$path = $this->currentPath->getPath();
$path = \Drupal::service('path_alias.manager')->getAliasByPath($path);
$path = trim($path, '/');
}
$path = urldecode($path);
Loading