Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
easy_breadcrumb
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
easy_breadcrumb
Merge requests
!103
Issue
#3030711
by rollins: views/ajax is being used as path when breadcrumb is inside view header
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Open
Issue
#3030711
by rollins: views/ajax is being used as path when breadcrumb is inside view header
issue/easy_breadcrumb-3030711:easy_breadcrumb-3030711
into
2.x
Overview
0
Commits
2
Pipelines
2
Changes
1
Open
Issue #3030711 by rollins: views/ajax is being used as path when breadcrumb is inside view header
Bohdan Mykhalchuk
requested to merge
issue/easy_breadcrumb-3030711:easy_breadcrumb-3030711
into
2.x
Mar 31, 2024
Overview
0
Commits
2
Pipelines
2
Changes
1
0
0
Merge request reports
Compare
2.x
version 1
084ffaea
Mar 31, 2024
2.x (HEAD)
and
latest version
latest version
b7fb96c3
2 commits,
Jun 26, 2024
version 1
084ffaea
1 commit,
Mar 31, 2024
1 file
+
3
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/EasyBreadcrumbBuilder.php
+
3
−
1
View file @ 50c893bf
Edit in single-file editor
Open in Web IDE
Show full file
@@ -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