Hello, thank you in advance for your help. I also need assistance with an issue on my website. I no longer have the complete URLs. This means that even if I go to the homepage/collection/product, the URL will be homepage/product. I received a response that this is how Shopify has now structured the URLs, but on websites where I found the same Shella theme, the URLs work correctly. Do I have a problem with my domain?
Topic summary
Issue: Product URLs lose the collection path, showing as homepage/products instead of /collections/…/products/… on a Shopify store using the Shella theme. The user asked if this was a domain issue.
Findings: A store link was shared. A helper confirmed that a manually constructed URL with /collections/… works, indicating the issue arises when clicking products from collection pages.
Proposed fix: Update theme code so product links are generated within their collection.
- Admin > Online Store > Themes > Actions > Edit code
- In the collection grid/template, replace {{ product.url }} with {{ product.url | within: collection }}
This Liquid filter ensures product links include the collection path.
Advice: If uncomfortable editing code, contact the theme’s support to implement the change (suggested as a free fix by theme support).
Status: The original poster thanked helpers; no explicit confirmation the change was implemented. Resolution appears identified but not definitively confirmed.
Hi @sao
Could you share your store URL?
Hi @sao
My understanding is you want to change the url structure for your website to homepage/collections/collection-name/products/product whenever you click the product under the collection. If so, you can follow the instructions below.
- From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
- Find the theme that you want to edit and click on “Actions” and then “Edit code”.
- Find the collection grid for your website
- Find and edit the code “{{ product.url }}” then replace it to {{ product.url | within: collection }}
Thank should add the link like this once you go to the product from the collection page. See image below
![]()
Thanks a lot Sir! Sorry for my very late answer, appreciate it!
I tried to manually add this link within collection and it works
I guess you are talking about the issue when you open products in collection page but it open link is your homepage/products/…
You will must edit code a little to make it open within collection.
I recommend you contact support of that theme so they can do it for you for free
Welcome,
Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!