Why isn't the title appearing in my breadcrumbs on certain pages?

PROBLEM

I have added breadcrumbs liquid with the page title, it is working perfectly fine for the pages.

However, I have problems with the login page and create account page as the title is not appearing.

CODE

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

{{ page.title }}


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 %}

Kindly advise how I can solve this. Thank you!

Hi @kam31 ,

Can you share your store url