Liquid object canonical_url and additional theme output
Compare the canonical_url target with effective robots specifications. Theme code or an app can unexpectedly exclude the main product.
In the theme head, look for canonical_url and more canonical tags from snippets or apps. Compare the direct product path to a product address in the collection context.
How to fix the issue in Shopify
- In layout/theme.liquid, inspect the canonical_url Liquid object and any additional SEO snippets in the HTML head. Compare direct product paths with product paths within collections. Do not replace the platform’s output with a hard-coded shop homepage.
- First decide which version should appear in search. Remove an unintended noindex from that version or point the canonical to another genuinely equivalent, indexable version.
Start with one affected page or template. Check its output before applying the correction to other pages.
Example of this specific finding
Illustrative control case: A publicly advertised product variant refers to a main product with noindex. If the main product is to appear in the search, its exclusion contradicts this intention.
follow-up audit in Shopify
Control a change in a duplicated test subject. The expected destination must fit the product; a fixed shop home URL is not a general replacement for canonical_url.
For the main product and variant separately decide which URL should be indexed. Only then canonical and indexing requirements be corrected together.
How to verify that the fix worked
Check both robots meta tags and X-Robots-Tag on the target. An unrelated page intentionally excluded from search must remain excluded after the change.
Check the canonical target: Compare the preferred URL with its HTTP status and indexability before changing a canonical rule.
Derogations and scope
Noindex on the target does not blindly remove: the main product may have been deliberately withdrawn. Another appropriate content or removal of the variant may be required.
Related: Shopify Online Store with Liquid-Theme. Hydrogen or other headless storefronts have their own rendering and hosting responsibilities.
Classify the general error
Definition, system-independent causes and further correction examples: Set indexing intent for both parties