All things Shopify and commerce
Hi,
My website shows href lang issues in the site audit. It doesn't show issues with the product links, but shows canonical and self referencing tag issues for product links with collection name in it. I am using Impulse theme and the href lang tags are auto generated from the theme and there is no section for editing. Please see the attached for reference.
Thanks in advance.
Hi @YasminAshraf,
What theme are you using on your storefront? What tool did you use to audit your site here?
Victor | Social Care @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit the Shopify Help Center or the Shopify Blog
Hi @Victor .
Thanks for the response. I am using the Impulse theme. And in the theme the product url is defined as product.url | within: collection. So, it causes the hreflang tag and self reference tag issues in SEMrush audit.
When I added {% assign canonical_product_url = product.url | within: collection %} instead of <link rel="canonical" href="{{ canonical_url }}" > it solves the issue, but causes duplicate content issues for all product urls as they are pointing to different urls. Can we keep the product urls with collection name in it and solve the canonical and duplicate content issues?
Thanks in advance.
Discover how to increase customer engagement on your store with articles from Shopify A...
By Jacqui Apr 23, 2025Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025