Collection in not showing in breadcrumb

Topic summary

A breadcrumb navigation issue is being reported where collections are not displaying properly in the breadcrumb trail.

Visual Evidence:
An attached screenshot demonstrates the problem with the breadcrumb display.

Code Provided:
The user shared their breadcrumb implementation code, which includes:

  • Conditional logic for different template types (index, cart, page, product, collection, blog, article)
  • Navigation structure using Liquid templating
  • Handling for collection URLs and current tags

Notable Issues:
Part of the code appears corrupted or reversed (text displayed backwards), particularly in sections handling collection and blog templates, which may be contributing to the malfunction.

Current Status:
The issue remains unresolved with no responses or solutions provided yet. The discussion appears to be seeking troubleshooting assistance for fixing the collection breadcrumb display.

Summarized with AI on November 9. AI used: claude-sonnet-4-5-20250929.

{% unless template == ‘index’ or template == ‘cart’ or template == ‘list-collections’ %}

Home {% if template contains 'page' %} {{ page.title }} {% elsif template contains 'product' %} {% if collection.url %} {{ collection.title | link_to: collection.url }} {% endif %} {{ product.title }} {% elsif template contains 'collection' and collection.handle %} {% if current_tags %} {% capture url %}/collections/{{ collection.handle }}{% endcapture %} {{ collection.title | link_to: url }} {{ current_tags | join: " + " }} {% else %} {{ collection.title }} {% endif %} {% elsif template == 'blog' %} {% if current_tags %} {{ blog.title | link_to: blog.url }} {{ current_tags | join: " + " }} {% else %} {{ blog.title }} {% endif %} {% elsif template == 'article' %} {{ blog.title | link_to: blog.url }} {{ article.title }} {% else %} {{ page_title }} {% endif %} {% endunless %}