improve the code this code cannot show the last visited page in breadcrumbs..?anyone please help

.breadcrumbs { margin: 0 0 2em; } .breadcrumbs__list { list-style-type: none; margin: 0; padding: 0; } .breadcrumbs__item { display: inline-block; } .breadcrumbs__item:not(:last-child):after { border-style: solid; border-width: .10em .10em 0 0; content: ''; display: inline-block; height: .20em; margin: 0 .20em; position: relative; transform: rotate(45deg); vertical-align: middle; width: .20em; } .breadcrumbs__link { text-decoration: underline; } .breadcrumbs__link[aria-current="page"] { color: inherit; font-weight: normal; text-decoration: none; } .breadcrumbs__link[aria-current="page"]:hover, .breadcrumbs__link[aria-current="page"]:focus { text-decoration: underline; } {%- unless template == 'index' or template == 'cart' or template == 'list-collections' or template == '404' -%} {%- assign t = template | split: '.' | first -%}
  1. Home
  2. {%- case t -%} {%- when 'page' -%}
  3. {{ page.title }}
  4. {%- when 'product' -%} {%- if collection.url -%}
  5. {{ collection.title | link_to: collection.url }}
  6. {%- endif -%}
  7. {{ product.title }}
  8. {%- when 'collection' and collection.handle -%} {%- if current_tags -%}
  9. {{ collection.title | link_to: collection.url }}
  10. {%- capture tag_url -%}{{ collection.url }}/{{ current_tags | join: "+"}}{%- endcapture -%} {{ current_tags | join: " + "}}
  11. {%- else -%}
  12. {{ collection.title }}
  13. {%- endif -%} {%- when 'blog' -%} {%- if current_tags -%}
  14. {{ blog.title | link_to: blog.url }}
  15. {%- capture tag_url -%}{{blog.url}}/tagged/{{ current_tags | join: "+" }}{%- endcapture -%} {{ current_tags | join: " + " }}
  16. {%- else -%}
  17. {{ blog.title }}
  18. {%- endif -%} {%- when 'article' -%}
  19. {{ blog.title | link_to: blog.url }}
  20. {{ article.title }}
  21. {%- else -%}
  22. {{ page_title }}
  23. {%- endcase -%}
{%- endunless -%}

Hi @Ehtesham ,

Please send the website link, I will check it for you

ok
check WA please