How could I make my links shorter, removing the /collections/ part?

Topic summary

A Shopify store owner wants to remove the /collections/ segment from product URLs, seeking to shorten links from domain.com/collections/collection-name/products/product-name to domain.com/products/product-name.

Proposed Solutions:

  • One responder suggested editing URL handles in Shopify admin (for products and collections), providing step-by-step guides via Tango links.
  • Another user clarified this doesn’t remove the /collections/ path structure itself, which is controlled by Shopify’s core system and cannot be modified.
  • A code-based workaround was offered: locate {{ product.url | within: collection }} in collection template files and remove the | within: collection filter, keeping only {{ product.url }} to eliminate collection references from URLs.
  • An alternative suggestion involved using third-party URL shortener apps available in the Shopify ecosystem.

Status: The original poster confirmed the admin-level URL editing didn’t solve the issue. The discussion remains open, with the code modification approach and URL shortener apps as potential alternatives, though no confirmed resolution has been marked.

Summarized with AI on October 25. AI used: claude-sonnet-4-5-20250929.

Hello, how could I make my links shorter, removing the /collections/ part?

Example:

asajce_0-1718196049421.png

I would like the link to be https://tuttocapsule.lt/products/kavos-kapsules-nescafe-dolce-gusto-aparatams-pagliero-cremoso-16-vnt

STORE URL: TUTTOCAPSULE.LT

THEME: CORNERSTONE

Hello! @asajce You can shorten links by following these steps.
For Products:
https://app.tango.us/app/workflow/Editing-the-URL-Handle-for-a-Product-on-Shopify-7dccfc0f6d55463682f6283097212aa7
For Collection:
https://app.tango.us/app/workflow/How-could-I-make-my-links-shorter-d8250937c2ec47558798e5fd988c8f2e
If you need further assistance, please let me know. If you found my help useful, consider liking this message and marking it as the solution. :blush:

Hello, thank you for you help. Unfortunately that doesn’t remove the /collection/ part when going from collection to product through the website :disappointed_face:

Unfortunately, that is not possible at all because that is controlled by Shopify themselves. No way for you to remove /collection/ or /products/ etc.

Hi @asajce
There is another method you can try,

From the collection file replace the code ( Don’t know the exact file but you can search the code in collection files )

{{ product.url | within: collection }}, you will need to remove |within:collection and keep only {{ product.url }} it will remove the collection reference from the URL.

1 Like

Hey @asajce If the solution presented meets your needs and addresses your query effectively, I encourage you to accept it as the chosen answer. This will acknowledge the support you received and aid fellow community members in identifying reliable and effective solutions for their similar concerns.
Thank you. :blush:

Hey @asajce
If the solution presented meets your needs and addresses your query effectively, I encourage you to accept it as the chosen answer. This will acknowledge the support you received and aid fellow community members in identifying reliable and effective solutions for their similar concerns.
Thank you.

Hi,

You can try out URL Shortener apps. There are a few you could try out listed by the offical Shopify blog .

I am also a builder behind an URL shortener app. Feel free to talk to me to see what my app can make everyday life easier.