Skip to content

Conversation

@afirlejczyk
Copy link
Contributor

Generate breadcrumbs base on category with lowest level.

Related issues

#1572

Contribution and curently important rules acceptance


for (let cat of catList) {
const catPath = cat.path
if (catPath && catPath.includes(rootCat.path) && (catPath.split('/').length > catForBreadcrumbs.path.split('/').length)) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The path field was not required before and if somebody is using for example M1 connector can have problem with this field being empty.

Can we easily add a fallback to the previous behavior - modified just by the way you’re selecting the root category?

So when the path is not set let’s generate breadcrumbs the previous way with parents

@pkarw
Copy link
Collaborator

pkarw commented Sep 22, 2018

@afirlejczyk could You take care of this backward compatibility issue next week?

@pkarw
Copy link
Collaborator

pkarw commented Sep 26, 2018

I've fixed it on my own :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants