Skip to content

Commit

Permalink
Merge pull request #74 from trikatechnologies/breadcrumb-structured
Browse files Browse the repository at this point in the history
 Fixed : Google Search Console: Breadcrumb structured data issues in Custom PLP pages
  • Loading branch information
wender authored Jun 17, 2024
2 parents e730b1e + 7094d39 commit 30a7795
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

### Fixed

- Fixed breadcrumb structured data issue in PLP where this field is missing `itemsListElement`.

## [0.12.0] - 2023-05-10

### Added
Expand Down
2 changes: 1 addition & 1 deletion react/SearchBreadcrumb.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ interface SearchBreadcrumbItem {
}

const getSearchBreadcrumb = (breadcrumb?: SearchBreadcrumbItem[]) => {
if (!Array.isArray(breadcrumb)) {
if (!Array.isArray(breadcrumb) || breadcrumb?.length === 0) {
return {}
}

Expand Down

0 comments on commit 30a7795

Please sign in to comment.