Canonical issue , URL changing to variant ID

Topic summary

A Shopify store owner is experiencing an SEO issue where product URLs automatically append variant IDs when the page loads.

The Problem:

  • Clean canonical URL: /products/round-cubic-zirconia-v-midi-chevron-ring-925-sterling-silver-bar10074-1
  • Automatically changes to: same URL + ?variant=42346216757503
  • This happens for products with multiple variants

User’s Goal:

  • Prevent the URL from changing when variants are selected
  • Maintain clean URLs for SEO purposes
  • Seeking backend solutions or code modifications

Status: The issue remains unresolved with no responses yet. This is likely caused by JavaScript in the theme that updates the URL when variant selections change, which can impact SEO and canonical URL management.

Summarized with AI on November 11. AI used: claude-sonnet-4-5-20250929.

I have products with variants, the system submits the product URL but when the page opens and loads the URL changes automatically with varients ID.
canonical is https://www.blueapplejewelryco.com/collections/cz-rings/products/round-cubic-zirconia-v-midi-chevron-ring-925-sterling-silver-bar10074-1 and the product but it automatically changes to variants https://www.blueapplejewelryco.com/collections/cz-rings/products/round-cubic-zirconia-v-midi-chevron-ring-925-sterling-silver-bar10074-1?variant=42342621675703

and I want to not change the URL and Run further processes in the backend, suggest a solution

Screenshot 2024-03-01 103226.png