redirect - How to force all URLs to have a trailing slash in Shopify
By default Shopify ends urls without a trailing slash, though a path to a version with the trailing slash can still be used. I'd like to avoid having both url paths as options and force the version without a trailing slash to redirect to the version with the trailing slash.
Example: /collections/all would redirect to /collections/all/
I can do this manually, but I'd much rather prefer to have this done automatically.
What is the best way to handle this in Shopify?
Didn't find the answer?
Our community is visited by hundreds of Shopify development professionals every day. Ask your question and get a quick answer for free.
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.