Dawn theme - remove 'collections' from url

Topic summary

A user wants to remove ‘/collections/’ from URLs in the Dawn theme for SEO and aesthetic purposes. They searched for code containing ‘within: collection’ in product-details.liquid and product-thumbnail.liquid files but couldn’t locate it.

Key responses:

  • One commenter explains the ‘/collections/’ path only appears when navigating to products from collection pages (not from homepage). They claim it helps browsers track page history and supports other features, suggesting it cannot be removed.
  • Two other commenters recommend looking in snippets/card-product.liquid instead of the originally mentioned files, noting the exact filename may vary by theme version.
  • One offers to help identify the specific file if provided the store URL.

Status: The discussion remains open with conflicting advice—one suggesting removal is impossible, others providing alternative file locations to edit.

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

Hello,

I am using the Dawn theme and want to remove the ‘collections’ word from my url for SEO reasons and to make it look cleaner.

I am searched around and all the solution state to go into the ‘edit code’ section and to remove any code containing ‘with: collection’ in the ‘snippets/product-details.liquid file and the snippets/product-thumbnail.liquid’ areas. I’ve tried but cannot find the ‘within: collection’ code anywhere at all to remove.

Does anyone have a solution for this particular theme?

Thanks,

Hi @embeskin

In the url, the word “collection” only appears when you enter the product page from the collection page
if you enter the product page directly from the homepage, there will be no word “collection”
this helps the browser know the history of previous pages, supports other features
so it cannot be deleted

Hello @embeskin

If you have a dawn theme then you can fins the snippets/card-product.liquid

https://prnt.sc/UP9_Reswe9RH

Based on version of the theme and theme code the file name might be different.

If you still not find that then let me know your store URL and I will trying my best to fin it for you.

If you require further help to optimize your store, please don’t hesitate to reach out. If you find this information useful, a Like would be greatly appreciated. And if this solves the problem, please Mark it as Solution!

Hi @embeskin

Please find and remove that part of the code in snippets/card-product.liquid file.