Unfortunately no. I have tried testing older versions, creating a new Shopify account from scratch and test it with initial installation but it still is there.
Technically, this doesn’t break anything, as we all know.
However, it’s also clear that this isn’t the intended behavior—if it were, removing the slug should cause an issue, but it doesn’t.
Here’s what happens:
When you click a product from any page (e.g., the products page or the featured products section on the home page), it loads with the variant slug in the URL: https://domain.com/product/product-name?variant=55554694840706
If you remove the slug and visit the link directly, it still works: https://domain.com/product/product-name
So the variant slug isn’t actually functionally necessary.
For example, in the Dawn theme, this behavior never occurs.
Overall, it feels like something the designer overlooked, and it doesn’t look quite right.
Yes, agreed with Mag. If you could fix this that would be a a huge help. From a client and SEO perspective, it’s not a good look to have messy URLs when a product has no variants. I know Horizon is a newer theme and sounds like it will be replacing Dawn overtime so it would make sense to have this resolved. Thank you for the quick reply!
Yes, I am in the same boat. Thank you for sharing that other thread. I tried updating the product variant url to href=“{{ product.url }}” as suggested in the thread you provided. Unfortunately, this then creates an issue with the related products widget urls. It fixes one problem but then causes another… Not sure how this isn’t resolved by Shopify, seems like a simple code fix for a Shopify developer. Let me know if you come across a solution!
Hi folks - From digging into this more we’ve found that the slug on URLs where there is no variant should not impact SEO as search engines target the canonical URL. However we will be investigating the other issues described in the merchant community post to prevent out of stock variants being a first selected variant.
What I understand is that Shopify team will not be addressing the main issue -variant slug on products without variant- we described here, am I correct?
Because the issue posted under merch community and what you addressed is something else.