cancel
Showing results for 
Search instead for 
Did you mean: 

Not getting full breadcrumb path on product page when landed from 'search'?

SOLVED

Not getting full breadcrumb path on product page when landed from 'search'?

Hello everyone,

I get category and product pages breadcrumbs nicely when I go by hierarchy, but when I search a SKU and land to product page, it gives only Home>product title. How to solve this?

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Not getting full breadcrumb path on product page when landed from 'search'?

Hi @bhupinder_kaur 

 

Yes its native behavior of Magento - Full path will only shown when someone actually go with hierarchy meaning from the menu if you go with category -> sub-category -> product detail page then it will surely showcase you full path.

 

But if you directly go with product details page from the search or URL anything it will only showcase you that particular product path !

 

If you will still want to override this  then you will require to do customization on the top of this native behavior for that below i am sharing reference link - 

 

https://magento.stackexchange.com/questions/225370/magento-2-2-4-breadcrumbs-do-not-show-on-product-...

 

https://magento.stackexchange.com/questions/229216/breadcrumbs-not-displaying-on-product-page-magent...

 

Happy to answer your question Smiley Happy

 

Hope it helps !

if issue solved,Click Kudos & Accept as Solution

View solution in original post

5 REPLIES 5

Re: Not getting full breadcrumb path on product page when landed from 'search'?

Hi @bhupinder_kaur 

 

When you go from hierarchy system knows the category path for product but when you go from search page direct then system directs you to product page. And a single product can be assigned in multiple categories that's why system does not add any category path. If you want to add breadcrumb in case you need to override magento's functionality for it.

If my answer is helpful, please Accept as Solution & give Kudos

Re: Not getting full breadcrumb path on product page when landed from 'search'?

Hi @bhupinder_kaur 

 

Yes its native behavior of Magento - Full path will only shown when someone actually go with hierarchy meaning from the menu if you go with category -> sub-category -> product detail page then it will surely showcase you full path.

 

But if you directly go with product details page from the search or URL anything it will only showcase you that particular product path !

 

If you will still want to override this  then you will require to do customization on the top of this native behavior for that below i am sharing reference link - 

 

https://magento.stackexchange.com/questions/225370/magento-2-2-4-breadcrumbs-do-not-show-on-product-...

 

https://magento.stackexchange.com/questions/229216/breadcrumbs-not-displaying-on-product-page-magent...

 

Happy to answer your question Smiley Happy

 

Hope it helps !

if issue solved,Click Kudos & Accept as Solution

Re: Not getting full breadcrumb path on product page when landed from 'search'?

Hi Ravikant

 

Thanks for the reply. 

Re: Not getting full breadcrumb path on product page when landed from 'search'?

Hi Manthan

 

Thanks for this solution!

Re: Not getting full breadcrumb path on product page when landed from 'search'?

Hi @bhupinder_kaur 

 

Happy to help !  keep helping others Smiley Happy

if issue solved,Click Kudos & Accept as Solution