I’m implementing simple breadcrumbs and the Dawn theme won’t return the path to the Collection. {% if collection %} is being ignored. I traced the requested path. See the preview below and use Best Sellers to find Product 5
{% if template contains "product" %}
{% if collection %}
/
{{ collection.title | escape }}
Here is the Preview link. The path it returns is /products/product-5, when it should be /best-sellers/product-5
That will end up making sure that when you go from a collection to a product by clicking on the product card it includes the collection info in the url.
how about showing a breadcrumb for when someone comes direct to the prodcut via say google ads? how do we show maybe one of the collection the prodcut is tied to?
Hi nice work, this seems to work so far, but I am wondering if you know as well, how this work with a sub-category in a main menu item. Because if you hover over an item of the main menu, it opens a dropdown with sub-categories and if you go to a page, it is showing:
home > product name, rather than home >collection (click/ or hover menu item) > product.