MsMarj
June 20, 2024, 6:53am
1
I want to avoid cannibalism in our site or canonical issues
I want to fix our product page URL to this
https://www.domain.com/products/boost-light-electric-height-adjustable-single-sided-workstation
instead of this
https:// www.domain.com/ collections/height-adjustable-standing-desks/products/boost-light-electric-height-adjustable-single-sided-workstation
And is it correct Google should indexed this kind of URL Structure?
https:// www.domain.com/ products/boost-light-electric-height-adjustable-single-sided-workstation
Hi @MsMarj
You can remove it from the URL only when visitors open products from collection pages by deleting this part in "| within: collection" in collection liquid file.
If they open directly within the collection in the URL, then they cannot be removed.
EBOOST
June 20, 2024, 8:49am
3
Hi @MsMarj ,
May I suggest to update it these steps:
Go to Store Online-> theme → edit code
snippets/card-product.liquid
Remove "| within: collection"
MsMarj
June 21, 2024, 2:36am
4
Hi @Dan-From-Ryviu
I check on my backend I don’t have this collection liquid file
MsMarj
June 21, 2024, 2:38am
5
Hi @EBOOST appreciate your response. I check on my end we don’t have this snippets/card-product.liquid
MsMarj
June 21, 2024, 2:39am
6
Hi @pwcsangeeta
Thank for taking time to response.
On my end I don’t have this card-product.liquid
Would you share your store URL to check?
MsMarj
June 21, 2024, 2:42am
8
Hi @MsMarj
Please check and remove that part in product-grid-item.liquid file.
1 Like
MsMarj
June 26, 2024, 7:54am
10
what specific code will I remove on product-grid-item.liquid ?
Find this part and remove from your file
| within: collection
1 Like
MsMarj
July 3, 2024, 8:14am
12
All good now @Dan-From-Ryviu Thank you so much
1 Like
MRamzan
January 17, 2025, 11:39am
14
You can remove /collections from URL in your shopify store.