Collection description not updating when I navigate from the sidebar

Highlighted
New Member
2 0 0

Troubleshooting posts

  1. Preview link : https://ryxqcd5dn0uf7x7g-13461035.shopifypreview.com
    Custom theme

  2. When did the issue first appear?
    I guess when we added the collections description to the collections pages

  3. Have you made any changes to your theme’s setting or changes to the theme code recently? If so what?
    No

  4. Have you made any other changes to your Shop recently such as installing a new app?
    No

  5. Have you been able to reproduce the issue using a fresh copy of your theme from the theme store and identifying the issue persists?
    We use a custom theme so no.

  6. A screenshot(s) or video of the issue

    BEFORE NAVIGATING FROM THE SIDEBAR
    image.png

AFTER NAVIGATING FROM THE SIDEBAR
image.png

Hi folks !


Recently I have added collections description right above my product listings, on my collections pages. It's a simple snippet 

 
<h1> {{collection.description}} </h1>

However I notice that when i navigate to an other collection using the sidebar, the collections description remains to that of the first page I landed on. Navigating from the sidebar generates non-canonical URLs.

Here's a description of the behavior:

 

[I click this collection in the header and land on this canonical URL]

https://mydomain.com/collections/tshirts

(With the tshirts collection description displayed)

 

[I click the tanktops collection in the side bar and land on this non-canonical URL]

https://mydomain.com/collections/tanktops?designs=&sizes=&colors=

(With the tshirts collection still displaying)

 

[I refresh the page and stay on this non-canonical URL]

https://mydomain.com/collections/tanktops?designs=&sizes=&colors=

(With the proper tanktops description now displaying)

 

I'm really at a loss, I don't know how to even begin fixing this.

0 Likes