@filiberto
To force all URLs to have a trailing slash in Shopify, you can add a code snippet to your theme files. Here's a step-by-step guide on how to do this:
1 2 3 4 5 6 |
{% if request.path != request.path | append: '/' %} {% capture redirect_url %}{{ request.path | append: '/' }}{% endcapture %} <script> window.location.href = '{{ redirect_url }}' </script> {% endif %} |
Please note that adding this code may affect how certain URLs are handled on your website, so it's recommended to test thoroughly before making this change live. Also, consider consulting with a Shopify developer or support team if you have any concerns or need further assistance.