Skip to content

Commit

Permalink
Issue backdrop-contrib#12: Wrap plain text breadcrumb in a span. (bac…
Browse files Browse the repository at this point in the history
  • Loading branch information
herbdool committed Aug 27, 2023
1 parent 4eba252 commit 80ee1c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/url_processor_standard.inc
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ class FacetapiUrlProcessorStandard extends FacetapiUrlProcessor {
// Adds the current search to the query.
if ($keys) {
// The last item should be text, not a link.
$breadcrumb[] = $active_items ? l($keys, current_path(), array('query' => $query)) : check_plain($keys);
$breadcrumb[] = $active_items ? l($keys, current_path(), array('query' => $query)) : '<span aria-current="location">' . check_plain($keys) . '</span>';
}

// Adds filters to the breadcrumb trail.
Expand All @@ -120,7 +120,7 @@ class FacetapiUrlProcessorStandard extends FacetapiUrlProcessor {

// The last item should be text, not a link.
if ($last == $item) {
$breadcrumb[] = !empty($value['#html']) ? $value['#markup'] : check_plain($value['#markup']);
$breadcrumb[] = !empty($value['#html']) ? $value['#markup'] : '<span aria-current="location">' . check_plain($value['#markup']) . '</span>';
}
else {
// Appends the filter to the breadcrumb trail.
Expand Down

0 comments on commit 80ee1c1

Please sign in to comment.