No self-referencing hreflang - in collection->product page

Topic summary

Missing self-referencing hreflang tags are reported on product URLs when accessed via a collection path (e.g., /collections/…/products/…), while direct product URLs (/products/…) are fine.

Hreflang indicates a page’s language/region variants; a self-referencing hreflang tells search engines the current page’s own language/region URL to avoid duplicate-content or indexing issues.

Proposed fix: add self-referencing hreflang tags to the affected templates. Steps suggested: Online Store → Themes → Actions → Edit code; open the relevant template that outputs collection-product pages; add hreflang tags inside the ; save and test.

For stores using Shopify Translate & Adapt, if the app UI doesn’t expose hreflang, either paste tags via the app’s HTML tab (if available) or implement directly in the theme. Note: the shared code blocks contained placeholders and no concrete snippet.

Open points: another merchant asks for a sitewide/general solution since all products in collections are affected. No definitive, scalable implementation (e.g., a global snippet applied across templates) has been provided yet, so the issue remains unresolved.

Summarized with AI on January 11. AI used: gpt-5.

Pages come under collection/product shows No self-referencing hreflang but the same page views under product page have no issue

Ex:

aaaaaa.fr/ collections/bbbbbb/products/ccccccc - No self-referencing hreflang

aaaaaa.fr/ products/ccccccc - Have No Issue (Same product)

How to resolve?

Hello @Suryadprakash ,

We are Transcy - a powerful translator and currencies converter.

To resolve the issue, you can add self-referencing hreflang tags to your collection pages. This will indicate to search engines that the page is also available in the same language and region as the current page, and help prevent potential duplicate content issues. Here’s how:


Hope these can help. Don’t be hesitate to contact us if you have any further questions. Please hit the Like Button or mark this as Accepted Solution for us, it encourage us a lot.

Regards,

Transcy team.

2 Likes

Hi Transcy team.

Thanks for the reply! i had already developed this in my page, here what the issue is im using “shopify Translate and adopt app” this is where the problem is i cant access to the “hreflang” coding section. can u pls explain me where can i add the coding part? hence im using “shopify Translate and adopt app”

1 Like

Hello again,

If you can’t access the “hreflang” coding section, you may edit the code in your theme’s code. Try to follow these steps:

  • Go to Online store → Themes → Action → Edit code
  • Navigate to the template file for the page you want to edit
  • Locate the section of the template file, and add the hreflang tags within it

  
  
  
  

  • Save and test

Or, you can try to access the “HTML” tab in the “Shopify Translate and Adapt” app and paste the code here.

Hope this will work. Don’t be hesitate to contact us if you have any further questions.

Have a nice day.

Transcy team.

Hi Transcy team,

I understand your solution when it comes to a particular page but I have this problem too and it is happening for all my products in all my collections.

Is there a way how to generally solve this problem?

Thank you!